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.