@andy5995 commented on this pull request.
+static gboolean pin_init(GeanyPlugin *plugin, gpointer pdata) +{ + GtkWidget *main_menu_item; + + struct pindata *container = init_pindata(); + container->plugin = plugin; + + // Create a new menu item and show it + main_menu_item = gtk_menu_item_new_with_mnemonic("Pin Document"); + gtk_widget_show(main_menu_item); + gtk_container_add(GTK_CONTAINER(plugin->geany_data->main_widgets->tools_menu), + main_menu_item); + g_signal_connect(main_menu_item, "activate", + G_CALLBACK(pin_activate_cb), container); + g_signal_connect(pinned_view_vbox, "button-press-event",
Fixed.