[Github-comments] [geany/geany-plugins] Workbench (#598)
LarsGit223
notifications at xxxxx
Sun Aug 20 09:44:10 UTC 2017
LarsGit223 commented on this pull request.
> + G_CALLBACK(item_workbench_settings_activate_cb), NULL);
+ geany_plugin_set_data(wb_globals.geany_plugin, menu_data.item_settings, NULL);
+
+ /* Create new menu item "Close Workbench" */
+ menu_data.item_close = gtk_menu_item_new_with_mnemonic(_("Close"));
+ gtk_widget_show(menu_data.item_close);
+ gtk_menu_append(GTK_MENU (menu_data.menu), menu_data.item_close);
+ g_signal_connect(menu_data.item_close, "activate",
+ G_CALLBACK(item_close_workbench_activate_cb), NULL);
+ geany_plugin_set_data(wb_globals.geany_plugin, menu_data.item_close, NULL);
+
+ /* Add our menu to the main window (left of the help menu) */
+ 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);
Ok, I will follow the convention. Now it is attached to the tools menu.
--
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_r134110996
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170820/f1a92049/attachment.html>
More information about the Github-comments
mailing list