SF.net SVN: geany-plugins:[1581] trunk/geanylatex/src/geanylatex.c
frlan at users.sourceforge.net
frlan at xxxxx
Mon Sep 13 20:55:16 UTC 2010
Revision: 1581
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1581&view=rev
Author: frlan
Date: 2010-09-13 20:55:16 +0000 (Mon, 13 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Fix unloading of plugin
Modified Paths:
--------------
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-09-13 20:54:18 UTC (rev 1580)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-13 20:55:16 UTC (rev 1581)
@@ -2126,9 +2126,18 @@
}
+void static
+remove_menu_from_tools_menu()
+{
+ if (menu_latex_toolbar_wizard != NULL)
+ {
+ gtk_widget_destroy(menu_latex_toolbar_wizard);
+ menu_latex_toolbar_wizard = NULL;
+ }
+}
void static
-add_wizard_to_toolbar()
+add_wizard_to_tools_menu()
{
menu_latex_toolbar_wizard = ui_image_menu_item_new(GTK_STOCK_NEW,
_("LaTeX-_Wizard"));
@@ -2149,7 +2158,7 @@
glatex_init_configuration();
glatex_init_encodings_latex();
- add_wizard_to_toolbar();
+ add_wizard_to_tools_menu();
init_keybindings();
@@ -2171,6 +2180,7 @@
if (glatex_toolbar != NULL)
gtk_widget_destroy(glatex_toolbar);
remove_menu_from_menubar();
+ remove_menu_from_tools_menu();
g_free(config_file);
g_free(glatex_ref_chapter_string);
g_free(glatex_ref_page_string);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list