mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
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:
parent
fbcf588227
commit
7661da2306
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user