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.
This commit is contained in:
Tim Janik 2006-01-17 18:28:27 +00:00 committed by Tim Janik
parent fbcf588227
commit 7661da2306
3 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.
2006-01-17 Michael Natterer <mitch@imendio.com>
* gtk/gtkbutton.c: remove the "child-spacing" style property again

View File

@ -1,3 +1,9 @@
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.
2006-01-17 Michael Natterer <mitch@imendio.com>
* gtk/gtkbutton.c: remove the "child-spacing" style property again

View File

@ -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);
}
}