Revision: 205 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=205&view=rev Author: frlan Date: 2008-10-14 20:48:47 +0000 (Tue, 14 Oct 2008)
Log Message: ----------- GeanyLaTeX: Updated to Geany Plugin API v100
Modified Paths: -------------- trunk/geanylatex/ChangeLog trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog =================================================================== --- trunk/geanylatex/ChangeLog 2008-10-14 18:04:44 UTC (rev 204) +++ trunk/geanylatex/ChangeLog 2008-10-14 20:48:47 UTC (rev 205) @@ -1,3 +1,8 @@ +2008-10-14 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + + * Updated to Geany Plugin API v100 (add_document_sensitive()) + + 2008-09-01 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/geanylatex.c: Added support for l10n.
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2008-10-14 18:04:44 UTC (rev 204) +++ trunk/geanylatex/src/geanylatex.c 2008-10-14 20:48:47 UTC (rev 205) @@ -45,13 +45,12 @@
typedef void (*SubMenuCallback) (G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_UNUSED gpointer gdata);
-PluginInfo *plugin_info; -PluginFields *plugin_fields; +GeanyPlugin *geany_plugin; GeanyData *geany_data; GeanyFunctions *geany_functions;
+PLUGIN_VERSION_CHECK(100)
-PLUGIN_VERSION_CHECK(78) PLUGIN_SET_INFO(_("LaTeX"), _("Plugin to make Geany better support LaTeX"), "0.2-dev", "Frank Lanitz frank@frank.uvena.de")
@@ -63,6 +62,9 @@ GtkWidget *menu_latex_ref = NULL; GtkWidget *menu_latex_label = NULL;
+static GtkWidget *main_menu_item = NULL; + + /* Doing some basic keybinding stuff */ enum { @@ -769,7 +771,11 @@ doc = p_document->get_current(); have_file = doc && doc->file_name && g_path_is_absolute(doc->file_name);
- if (have_file) + p_ui->add_document_sensitive(menu_latex_menu_special_char); + p_ui->add_document_sensitive(menu_latex_ref); + p_ui->add_document_sensitive(menu_latex_label); + +/* if (have_file) { gtk_widget_set_sensitive(menu_latex_menu_special_char, TRUE); gtk_widget_set_sensitive(menu_latex_ref, TRUE); @@ -780,7 +786,7 @@ gtk_widget_set_sensitive(menu_latex_menu_special_char, FALSE); gtk_widget_set_sensitive(menu_latex_ref, FALSE); gtk_widget_set_sensitive(menu_latex_label, FALSE); - } + }*/
gtk_widget_set_sensitive(menu_latex_wizzard, TRUE);
@@ -885,11 +891,11 @@ p_keybindings->set_item(plugin_key_group, LATEX_INSERT_REF_KB, kbref_insert, 0, 0, "insert_latex_ref", kblabel_insert_ref, menu_latex_wizzard); gtk_widget_show_all(menu_latex); - plugin_fields->menu_item = menu_latex; + main_menu_item = menu_latex; }
void plugin_cleanup() { - gtk_widget_destroy(plugin_fields->menu_item); + gtk_widget_destroy(main_menu_item); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org