Fix plugins to compile with GEANY_DISABLE_DEPRECATED.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2617 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
df1a8e63a3
commit
a87b2e57b9
@ -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>
|
||||
|
@ -37,7 +37,7 @@ GeanyData *geany_data;
|
||||
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 set_timeout(void)
|
||||
}
|
||||
|
||||
|
||||
void init(GeanyData *data)
|
||||
void plugin_init(GeanyData *data)
|
||||
{
|
||||
GKeyFile *config = g_key_file_new();
|
||||
GError *error = NULL;
|
||||
@ -200,7 +200,7 @@ void configure(GtkWidget *parent)
|
||||
}
|
||||
|
||||
|
||||
void cleanup(void)
|
||||
void plugin_cleanup(void)
|
||||
{
|
||||
g_source_remove(src_id);
|
||||
g_free(config_file);
|
||||
|
@ -39,7 +39,7 @@ GeanyData *geany_data;
|
||||
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 @@ on_menu_create_gtk_class_activate (GtkMenuItem *menuitem,
|
||||
}
|
||||
|
||||
|
||||
void init(GeanyData *data)
|
||||
void plugin_init(GeanyData *data)
|
||||
{
|
||||
GtkWidget *menu_create_class1;
|
||||
GtkWidget *image1861;
|
||||
@ -805,7 +805,7 @@ void init(GeanyData *data)
|
||||
}
|
||||
|
||||
|
||||
void cleanup(void)
|
||||
void plugin_cleanup(void)
|
||||
{
|
||||
gtk_widget_destroy(plugin_fields->menu_item);
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ GeanyFunctions *geany_functions;
|
||||
|
||||
/* 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 @@ item_activate(GtkMenuItem *menuitem, gpointer gdata)
|
||||
|
||||
/* 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 @@ 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(). */
|
||||
void cleanup(void)
|
||||
void plugin_cleanup(void)
|
||||
{
|
||||
/* remove the menu item added in init() */
|
||||
gtk_widget_destroy(plugin_fields->menu_item);
|
||||
|
@ -42,7 +42,7 @@ PluginFields *plugin_fields;
|
||||
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 @@ static void write_html_file(gint idx, const gchar *filename, gboolean use_zoom)
|
||||
}
|
||||
|
||||
|
||||
void init(GeanyData *data)
|
||||
void plugin_init(GeanyData *data)
|
||||
{
|
||||
GtkWidget *menu_export;
|
||||
GtkWidget *menu_export_menu;
|
||||
@ -739,7 +739,7 @@ void init(GeanyData *data)
|
||||
}
|
||||
|
||||
|
||||
void cleanup(void)
|
||||
void plugin_cleanup(void)
|
||||
{
|
||||
gtk_widget_destroy(plugin_fields->menu_item);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ GeanyData *geany_data;
|
||||
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 @@ static void kb_activate(guint key_id)
|
||||
}
|
||||
|
||||
|
||||
void init(GeanyData *data)
|
||||
void plugin_init(GeanyData *data)
|
||||
{
|
||||
GtkWidget *scrollwin, *toolbar, *filterbar;
|
||||
|
||||
@ -1037,7 +1037,7 @@ void configure(GtkWidget *parent)
|
||||
}
|
||||
|
||||
|
||||
void cleanup(void)
|
||||
void plugin_cleanup(void)
|
||||
{
|
||||
g_free(config_file);
|
||||
g_free(open_cmd);
|
||||
|
@ -38,7 +38,7 @@ GeanyData *geany_data;
|
||||
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 @@ static void kb_activate(G_GNUC_UNUSED guint key_id)
|
||||
|
||||
|
||||
/* 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 @@ void init(GeanyData *data)
|
||||
|
||||
|
||||
/* Destroy widgets */
|
||||
void cleanup(void)
|
||||
void plugin_cleanup(void)
|
||||
{
|
||||
gtk_widget_destroy(plugin_fields->menu_item);
|
||||
|
||||
|
@ -45,7 +45,7 @@ GeanyData *geany_data;
|
||||
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 @@ static void update_menu_items(void)
|
||||
|
||||
|
||||
/* 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 @@ void init(GeanyData *data)
|
||||
|
||||
|
||||
/* 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user