Revision: 1605 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1605&view=re... Author: frlan Date: 2010-09-27 07:10:40 +0000 (Mon, 27 Sep 2010)
Log Message: ----------- GeanyVC: Replace deprecated plugin_fields.
Modified Paths: -------------- trunk/geany-plugins/geanyvc/src/geanyvc.c
Modified: trunk/geany-plugins/geanyvc/src/geanyvc.c =================================================================== --- trunk/geany-plugins/geanyvc/src/geanyvc.c 2010-09-27 07:10:18 UTC (rev 1604) +++ trunk/geany-plugins/geanyvc/src/geanyvc.c 2010-09-27 07:10:40 UTC (rev 1605) @@ -39,9 +39,6 @@ #include <gtkspell/gtkspell.h> #endif
- - -PluginFields *plugin_fields; GeanyData *geany_data; GeanyFunctions *geany_functions; GeanyPlugin *geany_plugin; @@ -110,7 +107,9 @@ static GtkWidget *editor_menu_vc = NULL; static GtkWidget *editor_menu_commit = NULL; static GtkWidget *menu_item_sep = NULL; +static GtkWidget *menu_entry = NULL;
+ static void registrate(); static void add_menuitems_to_editor_menu(); static void remove_menuitems_from_editor_menu(); @@ -2273,8 +2272,8 @@ /* init entries inside editor menu */ add_menuitems_to_editor_menu();
- plugin_fields->menu_item = menu_vc; - plugin_fields->flags = PLUGIN_IS_DOCUMENT_SENSITIVE; + ui_add_document_sensitive(menu_vc); + menu_entry = menu_vc; }
@@ -2282,9 +2281,8 @@ void plugin_cleanup() { - // remove the menu item added in init() - gtk_widget_destroy(plugin_fields->menu_item); remove_menuitems_from_editor_menu(); + gtk_widget_destroy(menu_entry); g_slist_free(VC); VC = NULL; g_free(config_file);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.