[geany/geany-plugins] 2b35a1: Merge pull request #383 from eht16/geanyvc_top_menu_item_order

Frank Lanitz git-noreply at xxxxx
Sun Mar 6 11:13:23 UTC 2016


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Sun, 06 Mar 2016 11:13:23 UTC
Commit:      2b35a1a94063831b56ebe879042b7e65cf74eee7
             https://github.com/geany/geany-plugins/commit/2b35a1a94063831b56ebe879042b7e65cf74eee7

Log Message:
-----------
Merge pull request #383 from eht16/geanyvc_top_menu_item_order

Use gtk_menu_shell_insert() to add the VC menu item to the menubar


Modified Paths:
--------------
    geanyvc/src/geanyvc.c

Modified: geanyvc/src/geanyvc.c
4 lines changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -2306,12 +2306,14 @@ plugin_init(G_GNUC_UNUSED GeanyData * data)
 	if (set_menubar_entry == TRUE)
 	{
 		GtkMenuShell *menubar;
+		GList *menubar_children;
 
 		menubar = GTK_MENU_SHELL(
 				ui_lookup_widget(geany->main_widgets->window, "menubar1"));
 
 		menu_vc = gtk_menu_item_new_with_mnemonic(_("_VC"));
-		gtk_menu_shell_append(menubar, menu_vc);
+		menubar_children = gtk_container_get_children(GTK_CONTAINER(menubar));
+		gtk_menu_shell_insert(menubar, menu_vc, g_list_length(menubar_children) - 1);
 	}
 	else
 	{



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list