Use plugin_init() in comments.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2620 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-05-27 17:03:43 +00:00
parent 4f79ebb646
commit d5af5049b3
2 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@
#include "pluginmacros.h" /* some useful macros to avoid typing geany_data so often */ #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; PluginInfo *plugin_info;
PluginFields *plugin_fields; PluginFields *plugin_fields;
GeanyData *geany_data; 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 /* 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. * 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 * Note: parent is the parent window which can be used as the transient window for the created
* dialog. */ * dialog. */
@ -148,10 +148,10 @@ void configure(GtkWidget *parent)
/* Called by Geany before unloading the plugin. /* Called by Geany before unloading the plugin.
* Here any UI changes should be removed, memory freed and any other finalization done. * 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) 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); gtk_widget_destroy(plugin_fields->menu_item);
/* release other allocated strings and objects */ /* release other allocated strings and objects */
g_free(welcome_text); g_free(welcome_text);

View File

@ -556,6 +556,6 @@ void plugin_init(GeanyData *data)
/* Called by Geany before unloading the plugin. */ /* Called by Geany before unloading the plugin. */
void plugin_cleanup(void) 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); gtk_widget_destroy(plugin_fields->menu_item);
} }