diff options
author | Tim Janik <timj@imendio.com> | 2006-01-17 18:28:27 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2006-01-17 18:28:27 +0000 |
commit | 7661da2306a4daa5e490d1231b6c51d3c74374c7 (patch) | |
tree | 95f03e4bc75c2ed0183e9fdc673641e83fc35dd7 /gtk/gtkprogress.c | |
parent | fbcf58822770093dcd7210c513a83943e8a645fa (diff) | |
download | gtk+-7661da2306a4daa5e490d1231b6c51d3c74374c7.tar.gz |
fix adopted from maemo-gtk. gtk_progress_create_pixmap(): clear out the
Tue Jan 17 19:27:59 2006 Tim Janik <timj@imendio.com>
* gtk/gtkprogress.c: fix adopted from maemo-gtk.
gtk_progress_create_pixmap(): clear out the newly created offscreen
pixmap, so themes making use of transparency don't draw onto garbage.
Diffstat (limited to 'gtk/gtkprogress.c')
-rw-r--r-- | gtk/gtkprogress.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkprogress.c b/gtk/gtkprogress.c index 94babf8751..3aae0fa69b 100644 --- a/gtk/gtkprogress.c +++ b/gtk/gtkprogress.c @@ -372,6 +372,13 @@ gtk_progress_create_pixmap (GtkProgress *progress) widget->allocation.width, widget->allocation.height, -1); + + /* clear the pixmap for transparent themes */ + gtk_paint_flat_box (widget->style, + progress->offscreen_pixmap, + GTK_STATE_NORMAL, GTK_SHADOW_NONE, + NULL, widget, "trough", 0, 0, -1, -1); + GTK_PROGRESS_GET_CLASS (progress)->paint (progress); } } |