summaryrefslogtreecommitdiff
path: root/gtk/gtkimagemenuitem.c
diff options
context:
space:
mode:
authorAlex Larsson <alexl@redhat.com>2001-06-05 21:48:24 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-06-05 21:48:24 +0000
commit56984ab2773b6ebd6bf32792a8a844fafa2ea970 (patch)
tree9cee13fc87d8bf061e46742b868f9c416239078a /gtk/gtkimagemenuitem.c
parente426751e74c2af6bf5840c8ca5809c92c064b3b3 (diff)
downloadgtk+-56984ab2773b6ebd6bf32792a8a844fafa2ea970.tar.gz
Don't crash when the properties window is destroyed.
2001-06-05 Alex Larsson <alexl@redhat.com> * tests/testgtk.c (destroy_properties): Don't crash when the properties window is destroyed. * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): Use with_mnemonics to handle the case of stock items with underscores in them.
Diffstat (limited to 'gtk/gtkimagemenuitem.c')
-rw-r--r--gtk/gtkimagemenuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimagemenuitem.c b/gtk/gtkimagemenuitem.c
index 68c020407f..cd74909a73 100644
--- a/gtk/gtkimagemenuitem.c
+++ b/gtk/gtkimagemenuitem.c
@@ -399,7 +399,7 @@ gtk_image_menu_item_new_from_stock (const gchar *stock_id,
if (gtk_stock_lookup (stock_id, &stock_item))
{
- item = gtk_image_menu_item_new_with_label (stock_item.label);
+ item = gtk_image_menu_item_new_with_mnemonic (stock_item.label);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);