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
This commit is contained in:
Enrico Tröger 2009-02-06 19:39:52 +00:00
parent 51b3a33503
commit 35aaad545b
2 changed files with 14 additions and 11 deletions

View File

@ -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>

View File

@ -557,6 +557,18 @@ static GtkWidget *vte_create_popup_menu(void)
gtk_widget_show(item);
gtk_container_add(GTK_CONTAINER(menu), item);
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));
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);
/* 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"));
@ -565,17 +577,6 @@ static GtkWidget *vte_create_popup_menu(void)
gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), vc->im_submenu);
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);
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));
return menu;
}