diff options
author | Michael Natterer <mitch@gimp.org> | 2001-08-04 12:48:16 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2001-08-04 12:48:16 +0000 |
commit | b092021ba6e8aa55de595aee52eef683f8ced034 (patch) | |
tree | 884977acb472d365ebf9f45d749b50d07f646153 /gtk/gtkitemfactory.c | |
parent | 8dfce4590b1308c621e0411faa8a801c65923591 (diff) | |
download | gtk+-b092021ba6e8aa55de595aee52eef683f8ced034.tar.gz |
Need to show the image after adding it to the GtkImageMenuItem. This used
2001-08-04 Michael Natterer <mitch@gimp.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_item):
Need to show the image after adding it to the GtkImageMenuItem.
This used to work without in testgtk because of the
gtk_widget_show_all() at the end of the function.
(Closes #54978).
Diffstat (limited to 'gtk/gtkitemfactory.c')
-rw-r--r-- | gtk/gtkitemfactory.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkitemfactory.c b/gtk/gtkitemfactory.c index dcaa3a80f2..3aa134183e 100644 --- a/gtk/gtkitemfactory.c +++ b/gtk/gtkitemfactory.c @@ -1234,7 +1234,11 @@ gtk_item_factory_create_item (GtkItemFactory *ifactory, image = gtk_image_new_from_pixbuf (pixbuf); if (image) - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (widget), image); + { + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (widget), image); + + gtk_widget_show (image); + } if (pixbuf) g_object_unref (G_OBJECT (pixbuf)); @@ -1244,7 +1248,9 @@ gtk_item_factory_create_item (GtkItemFactory *ifactory, image = gtk_image_new_from_stock (entry->extra_data, GTK_ICON_SIZE_MENU); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (widget), image); - + + gtk_widget_show (image); + if (gtk_stock_lookup (entry->extra_data, &stock_item)) { if (!accelerator) |