LarsGit223 commented on this pull request.


> + *
+ **/
+gboolean menu_init(void)
+{
+       /* Create menu and root item/label */
+       menu_data.menu = gtk_menu_new();
+       menu_data.root_item = gtk_menu_item_new_with_label(_("Workbench"));
+       gtk_widget_show(menu_data.root_item);
+
+       /* Create new menu item "New Workbench" */
+       menu_data.item_new = gtk_menu_item_new_with_mnemonic(_("New"));
+       gtk_widget_show(menu_data.item_new);
+       gtk_menu_append(GTK_MENU (menu_data.menu), menu_data.item_new);
+       g_signal_connect(menu_data.item_new, "activate",
+                                        
G_CALLBACK(item_new_workbench_activate_cb), NULL);
+       geany_plugin_set_data(wb_globals.geany_plugin, menu_data.item_new, 
NULL);

Hmm...removed the calls. I do not remember exactly. Maybe copied from some 
place. I also thought I can use it to get the items destroyed on ending 
geany/the plugin.

-- 
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_r134043813

Reply via email to