b4n commented on this pull request.
+/* Cleanup plugin */
+static void plugin_workbench_cleanup(GeanyPlugin *plugin, gpointer pdata) +{ + menu_cleanup(); + sidebar_cleanup(); +} + + +/* Show help */ +static void plugin_workbench_help (GeanyPlugin *plugin, gpointer pdata) +{ + utils_open_browser("http://plugins.geany.org/workbench.html"); +} + + +PluginCallback plugin_workbench_callbacks[] = {
@codebrainz not exactly, the part you linked is the old plugin interface where the variable is looked up by Geany on plugin load, @LarsGit223's plugin uses the new interface which passes the callback through the plugin registration call.