summaryrefslogtreecommitdiff
path: root/debian/patches/0515-Fix_background_color_drawing.patch
blob: 04a1adb2689cd6dc992325a581e1697e735fbb6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Fix background color drawing
Author: Jens Georg <mail@jensge.org>
Origin: https://git.gnome.org/browse/shotwell/commit/?id=7361b3f
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=766864
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823835
Forwarded: not-needed
Last-Update: 2015-06-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/src/CheckerboardLayout.vala
===================================================================
--- trunk.orig/src/CheckerboardLayout.vala
+++ trunk/src/CheckerboardLayout.vala
@@ -1812,6 +1812,10 @@ public class CheckerboardLayout : Gtk.Dr
         // we want switched_to() to be the final call in the process (indicating that the page is
         // now in place and should do its thing to update itself), have to be be prepared for
         // GTK/GDK calls between the widgets being actually present on the screen and "switched to"
+
+        Gtk.Allocation allocation;
+        get_allocation(out allocation);
+        get_style_context().render_background (ctx, 0, 0, allocation.width, allocation.height);
         
         // watch for message mode
         if (message == null) {
@@ -1833,7 +1837,6 @@ public class CheckerboardLayout : Gtk.Dr
             int text_width, text_height;
             pango_layout.get_pixel_size(out text_width, out text_height);
             
-            Gtk.Allocation allocation;
             get_allocation(out allocation);
             
             int x = allocation.width - text_width;