[Github-comments] [geany/geany-plugins] Workbench (#598)
LarsGit223
notifications at xxxxx
Sat Aug 19 14:07:21 UTC 2017
LarsGit223 commented on this pull request.
> + gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_data.root_item), menu_data.menu);
+ gtk_menu_shell_insert
+ (GTK_MENU_SHELL (ui_lookup_widget(wb_globals.geany_plugin->geany_data->main_widgets->window, "menubar1")),
+ menu_data.root_item, 8);
+
+ return TRUE;
+}
+
+
+/** Cleanup menu data/mem.
+ *
+ **/
+void menu_cleanup (void)
+{
+ gtk_container_remove (GTK_CONTAINER(ui_lookup_widget(wb_globals.geany_plugin->geany_data->main_widgets->window, "menubar1")),
+ menu_data.root_item);
I read the documentation. Yes should work. Changed it.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/598#discussion_r134092640
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170819/18dc568d/attachment.html>
More information about the Github-comments
mailing list