Make sure all menu items are translated.

2002-03-31  Johan Dahlin  <jdahlin@telia.com>

        * src/menu.c (meta_window_menu_new): Make sure all menu items are
	        translated.
This commit is contained in:
Johan Dahlin 2002-03-31 21:19:58 +00:00 committed by Johan Dahlin
parent 4c323b8f33
commit a500a7e668
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-03-31 Johan Dahlin <jdahlin@telia.com>
* src/menu.c (meta_window_menu_new): Make sure all menu items are
translated.
2002-03-27 Havoc Pennington <hp@pobox.com> 2002-03-27 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_free): remove * src/window.c (meta_window_free): remove

View File

@ -245,14 +245,14 @@ meta_window_menu_new (MetaFrames *frames,
if (image) if (image)
{ {
mi = gtk_image_menu_item_new_with_mnemonic (menuitems[i].label); mi = gtk_image_menu_item_new_with_mnemonic (_(menuitems[i].label));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi),
image); image);
gtk_widget_show (image); gtk_widget_show (image);
} }
else else
{ {
mi = gtk_menu_item_new_with_mnemonic (menuitems[i].label); mi = gtk_menu_item_new_with_mnemonic (_(menuitems[i].label));
} }
if (insensitive & menuitems[i].op) if (insensitive & menuitems[i].op)