[Github-comments] [geany-plugins] Use gtk_menu_shell_insert() to add the VC menu item to the menubar (#383)
Enrico Tröger
notifications at xxxxx
Sun Mar 6 16:45:38 UTC 2016
>
> 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);
Same here. I'm working on a fix.
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/383/files#r55143853
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160306/8d6747d2/attachment.html>
More information about the Github-comments
mailing list