summaryrefslogtreecommitdiff
path: root/packages/gtk+/gtk+-2.6.4-1.osso7/gtkprogress.c.diff
blob: 07302bbab8450f46e0e288da49f454252698fd3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- gtk+-2.6.4/gtk/gtkprogress.c	2004-10-28 18:00:04.000000000 +0300
+++ gtk+-2.6.4/gtk/gtkprogress.c	2005-04-06 16:19:37.066903336 +0300
@@ -371,6 +371,17 @@
 						   widget->allocation.width,
 						   widget->allocation.height,
 						   -1);
+       
+      /* OSSO addition : clear the pixmap first or transparent images
+       * painted on top of it may look stupid when it's blended against
+       * random memory.*/
+      gtk_paint_flat_box (widget->style,
+			  progress->offscreen_pixmap,
+			  GTK_STATE_NORMAL,
+			  GTK_SHADOW_NONE,
+			  NULL, widget, NULL,
+			  0, 0, widget->allocation.width, widget->allocation.height);
+      
       GTK_PROGRESS_GET_CLASS (progress)->paint (progress);
     }
 }