don't try to map invisible widgets, e.g. the button icon when running with

2007-12-09  Jens Granseuer  <jensgr@gmx.net>

	* theme-thumbnail.c: (hbox_foreach): don't try to map invisible
	widgets, e.g. the button icon when running with gtk-button-images=0
	(bug #461298)

svn path=/trunk/; revision=8322
This commit is contained in:
Jens Granseuer 2007-12-09 15:36:10 +00:00 committed by Jens Granseuer
parent 205e897235
commit e146579518
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2007-12-09 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnail.c: (hbox_foreach): don't try to map invisible
widgets, e.g. the button icon when running with gtk-button-images=0
(bug #461298)
2007-12-09 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnail.c: (create_meta_theme_pixbuf): free metacity theme

View file

@ -121,10 +121,12 @@ static void
hbox_foreach (GtkWidget *widget,
gpointer data)
{
gtk_widget_realize (widget);
gtk_widget_map (widget);
gtk_widget_ensure_style (widget);
fake_expose_widget (widget, (GdkPixmap *) data, NULL);
if (GTK_WIDGET_VISIBLE (widget)) {
gtk_widget_realize (widget);
gtk_widget_map (widget);
gtk_widget_ensure_style (widget);
fake_expose_widget (widget, (GdkPixmap *) data, NULL);
}
}
static GdkPixbuf *