From d5af5049b3e6d89f66cb55b67986c69eb4fabf5e Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Tue, 27 May 2008 17:03:43 +0000 Subject: [PATCH] Use plugin_init() in comments. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2620 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- plugins/demoplugin.c | 8 ++++---- plugins/vcdiff.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/demoplugin.c b/plugins/demoplugin.c index 1e9c591cf..f2c71a572 100644 --- a/plugins/demoplugin.c +++ b/plugins/demoplugin.c @@ -43,7 +43,7 @@ #include "pluginmacros.h" /* some useful macros to avoid typing geany_data so often */ -/* These items are set by Geany before init() is called. */ +/* These items are set by Geany before plugin_init() is called. */ PluginInfo *plugin_info; PluginFields *plugin_fields; GeanyData *geany_data; @@ -102,7 +102,7 @@ void plugin_init(GeanyData *data) /* Called by Geany to show the plugin's configure dialog. This function is always called after - * init() was called. + * plugin_init() was called. * You can omit this function if the plugin doesn't need to be configured. * Note: parent is the parent window which can be used as the transient window for the created * dialog. */ @@ -148,10 +148,10 @@ void configure(GtkWidget *parent) /* Called by Geany before unloading the plugin. * Here any UI changes should be removed, memory freed and any other finalization done. - * Be sure to leave Geany as it was before init(). */ + * Be sure to leave Geany as it was before plugin_init(). */ void plugin_cleanup(void) { - /* remove the menu item added in init() */ + /* remove the menu item added in plugin_init() */ gtk_widget_destroy(plugin_fields->menu_item); /* release other allocated strings and objects */ g_free(welcome_text); diff --git a/plugins/vcdiff.c b/plugins/vcdiff.c index f5b6e9e3d..96b4fef38 100644 --- a/plugins/vcdiff.c +++ b/plugins/vcdiff.c @@ -556,6 +556,6 @@ void plugin_init(GeanyData *data) /* Called by Geany before unloading the plugin. */ void plugin_cleanup(void) { - /* remove the menu item added in init() */ + /* remove the menu item added in plugin_init() */ gtk_widget_destroy(plugin_fields->menu_item); }