Kaydet (Commit) 35aaad54 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix ordering of the input methods submenu item in the VTE popup menu.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3560 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 51b3a335
......@@ -6,6 +6,8 @@
Add plugin_module_make_resident() to the plugin API which allows
plugins to make the module resident. This seems necessary when
using GTypes, e.g. by using the GObject API.
* src/vte.c:
Fix ordering of the input methods submenu item in the VTE popup menu.
2009-02-05 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
......
......@@ -557,24 +557,25 @@ static GtkWidget *vte_create_popup_menu(void)
gtk_widget_show(item);
gtk_container_add(GTK_CONTAINER(menu), item);
vc->im_submenu = gtk_menu_new();
item = gtk_image_menu_item_new_with_mnemonic(_("_Input Methods"));
item = gtk_image_menu_item_new_from_stock("gtk-preferences", NULL);
gtk_widget_show(item);
gtk_container_add(GTK_CONTAINER(menu), item);
g_signal_connect(item, "activate", G_CALLBACK(vte_popup_menu_clicked), GINT_TO_POINTER(POPUP_PREFERENCES));
gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), vc->im_submenu);
msgwin_menu_add_common_items(GTK_MENU(menu));
item = gtk_separator_menu_item_new();
gtk_widget_show(item);
gtk_container_add(GTK_CONTAINER(menu), item);
item = gtk_image_menu_item_new_from_stock("gtk-preferences", NULL);
/* the IM submenu should always be the last item to be consistent with other GTK popup menus */
vc->im_submenu = gtk_menu_new();
item = gtk_image_menu_item_new_with_mnemonic(_("_Input Methods"));
gtk_widget_show(item);
gtk_container_add(GTK_CONTAINER(menu), item);
g_signal_connect(item, "activate", G_CALLBACK(vte_popup_menu_clicked), GINT_TO_POINTER(POPUP_PREFERENCES));
msgwin_menu_add_common_items(GTK_MENU(menu));
gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), vc->im_submenu);
return menu;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment