Revision: 2617 http://geany.svn.sourceforge.net/geany/?rev=2617&view=rev Author: ntrel Date: 2008-05-26 10:24:11 -0700 (Mon, 26 May 2008)
Log Message: ----------- Fix plugins to compile with GEANY_DISABLE_DEPRECATED.
Modified Paths: -------------- trunk/ChangeLog trunk/plugins/autosave.c trunk/plugins/classbuilder.c trunk/plugins/demoplugin.c trunk/plugins/export.c trunk/plugins/filebrowser.c trunk/plugins/htmlchars.c trunk/plugins/vcdiff.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-05-26 17:09:43 UTC (rev 2616) +++ trunk/ChangeLog 2008-05-26 17:24:11 UTC (rev 2617) @@ -12,6 +12,10 @@ plugin_version_check() function. Check that plugin keybinding names have been set in plugin_init(), otherwise print a debug message and ignore all of them. + * plugins/export.c, plugins/vcdiff.c, plugins/demoplugin.c, + plugins/filebrowser.c, plugins/htmlchars.c, plugins/autosave.c, + plugins/classbuilder.c: + Fix plugins to compile with GEANY_DISABLE_DEPRECATED.
2008-05-23 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/plugins/autosave.c =================================================================== --- trunk/plugins/autosave.c 2008-05-26 17:09:43 UTC (rev 2616) +++ trunk/plugins/autosave.c 2008-05-26 17:24:11 UTC (rev 2617) @@ -37,7 +37,7 @@ GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(32) +PLUGIN_VERSION_CHECK(64)
PLUGIN_SET_INFO(_("Auto Save"), _("Save automatically all open files in a given time interval."), VERSION, _("The Geany developer team")) @@ -93,7 +93,7 @@ }
-void init(GeanyData *data) +void plugin_init(GeanyData *data) { GKeyFile *config = g_key_file_new(); GError *error = NULL; @@ -200,7 +200,7 @@ }
-void cleanup(void) +void plugin_cleanup(void) { g_source_remove(src_id); g_free(config_file);
Modified: trunk/plugins/classbuilder.c =================================================================== --- trunk/plugins/classbuilder.c 2008-05-26 17:09:43 UTC (rev 2616) +++ trunk/plugins/classbuilder.c 2008-05-26 17:24:11 UTC (rev 2617) @@ -39,7 +39,7 @@ GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(7) +PLUGIN_VERSION_CHECK(64)
PLUGIN_SET_INFO(_("Class Builder"), _("Creates source files for new class types."), VERSION, "Alexander Rodin") @@ -769,7 +769,7 @@ }
-void init(GeanyData *data) +void plugin_init(GeanyData *data) { GtkWidget *menu_create_class1; GtkWidget *image1861; @@ -805,7 +805,7 @@ }
-void cleanup(void) +void plugin_cleanup(void) { gtk_widget_destroy(plugin_fields->menu_item); }
Modified: trunk/plugins/demoplugin.c =================================================================== --- trunk/plugins/demoplugin.c 2008-05-26 17:09:43 UTC (rev 2616) +++ trunk/plugins/demoplugin.c 2008-05-26 17:24:11 UTC (rev 2617) @@ -52,7 +52,7 @@
/* Check that Geany supports plugin API version 7 or later, and check * for binary compatibility. */ -PLUGIN_VERSION_CHECK(7) +PLUGIN_VERSION_CHECK(64)
/* All plugins must set name, description, version and author. */ PLUGIN_SET_INFO(_("Demo"), _("Example plugin."), VERSION, _("The Geany developer team")) @@ -84,7 +84,7 @@
/* Called by Geany to initialize the plugin. * Note: data is the same as geany_data. */ -void init(GeanyData *data) +void plugin_init(GeanyData *data) { GtkWidget *demo_item;
@@ -149,7 +149,7 @@ /* 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(). */ -void cleanup(void) +void plugin_cleanup(void) { /* remove the menu item added in init() */ gtk_widget_destroy(plugin_fields->menu_item);
Modified: trunk/plugins/export.c =================================================================== --- trunk/plugins/export.c 2008-05-26 17:09:43 UTC (rev 2616) +++ trunk/plugins/export.c 2008-05-26 17:24:11 UTC (rev 2617) @@ -42,7 +42,7 @@ GeanyData *geany_data; GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(20) +PLUGIN_VERSION_CHECK(64) PLUGIN_SET_INFO(_("Export"), _("Exports the current file into different formats."), VERSION, _("The Geany developer team"))
@@ -704,7 +704,7 @@ }
-void init(GeanyData *data) +void plugin_init(GeanyData *data) { GtkWidget *menu_export; GtkWidget *menu_export_menu; @@ -739,7 +739,7 @@ }
-void cleanup(void) +void plugin_cleanup(void) { gtk_widget_destroy(plugin_fields->menu_item); }
Modified: trunk/plugins/filebrowser.c =================================================================== --- trunk/plugins/filebrowser.c 2008-05-26 17:09:43 UTC (rev 2616) +++ trunk/plugins/filebrowser.c 2008-05-26 17:24:11 UTC (rev 2617) @@ -46,7 +46,7 @@ GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(26) +PLUGIN_VERSION_CHECK(64)
PLUGIN_SET_INFO(_("File Browser"), _("Adds a file browser tab to the sidebar."), VERSION, _("The Geany developer team")) @@ -910,7 +910,7 @@ }
-void init(GeanyData *data) +void plugin_init(GeanyData *data) { GtkWidget *scrollwin, *toolbar, *filterbar;
@@ -1037,7 +1037,7 @@ }
-void cleanup(void) +void plugin_cleanup(void) { g_free(config_file); g_free(open_cmd);
Modified: trunk/plugins/htmlchars.c =================================================================== --- trunk/plugins/htmlchars.c 2008-05-26 17:09:43 UTC (rev 2616) +++ trunk/plugins/htmlchars.c 2008-05-26 17:24:11 UTC (rev 2617) @@ -38,7 +38,7 @@ GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(48) +PLUGIN_VERSION_CHECK(64)
PLUGIN_SET_INFO(_("HTML Characters"), _("Inserts HTML character entities like '&'."), VERSION, _("The Geany developer team")) @@ -523,7 +523,7 @@
/* Called by Geany to initialize the plugin */ -void init(GeanyData *data) +void plugin_init(GeanyData *data) { GtkWidget *demo_item; const gchar *menu_text = _("_Insert Special HTML Characters"); @@ -546,7 +546,7 @@
/* Destroy widgets */ -void cleanup(void) +void plugin_cleanup(void) { gtk_widget_destroy(plugin_fields->menu_item);
Modified: trunk/plugins/vcdiff.c =================================================================== --- trunk/plugins/vcdiff.c 2008-05-26 17:09:43 UTC (rev 2616) +++ trunk/plugins/vcdiff.c 2008-05-26 17:24:11 UTC (rev 2617) @@ -45,7 +45,7 @@ GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(27) +PLUGIN_VERSION_CHECK(64)
PLUGIN_SET_INFO(_("Version Diff"), _("Creates a patch of a file against version control."), VERSION, _("The Geany developer team")) @@ -502,7 +502,7 @@
/* Called by Geany to initialize the plugin */ -void init(GeanyData *data) +void plugin_init(GeanyData *data) { GtkWidget *menu_vcdiff = NULL; GtkWidget *menu_vcdiff_menu = NULL; @@ -554,7 +554,7 @@
/* Called by Geany before unloading the plugin. */ -void cleanup(void) +void plugin_cleanup(void) { /* remove the menu item added in init() */ gtk_widget_destroy(plugin_fields->menu_item);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.