Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 06 Mar 2016 10:28:19 UTC Commit: d5f743770a8e46cca9ee0d24ee215beb3ad1d3a5 https://github.com/geany/geany-plugins/commit/d5f743770a8e46cca9ee0d24ee215b...
Log Message: ----------- Use gtk_menu_shell_insert() to add the VC menu item to the menubar
This fixes a little regression which caused the VC menu item in the top menubar to be placed after the Help menu item and not before as it used to do.
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).
plugins-commits@lists.geany.org