Revision: 1578 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1578&view=re... Author: frlan Date: 2010-09-13 00:23:56 +0000 (Mon, 13 Sep 2010)
Log Message: ----------- GeanyLaTeX: Clean up code a bit and fix a warning on disabling of plugin
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-09-12 19:35:52 UTC (rev 1577) +++ trunk/geanylatex/src/geanylatex.c 2010-09-13 00:23:56 UTC (rev 1578) @@ -2118,8 +2118,12 @@ void static remove_menu_from_menubar() { - gtk_widget_destroy(main_menu_item); - main_menu_item = NULL; + if (main_menu_item != NULL) + { + gtk_widget_destroy(main_menu_item); + main_menu_item = NULL; + } + }
@@ -2136,13 +2140,7 @@ G_CALLBACK(glatex_wizard_activated), NULL); }
-void static -remove_wizard_from_toolbar() -{ - gtk_widget_destroy(menu_latex_toolbar_wizard); -}
- void plugin_init(G_GNUC_UNUSED GeanyData * data) { @@ -2173,7 +2171,6 @@ if (glatex_toolbar != NULL) gtk_widget_destroy(glatex_toolbar); remove_menu_from_menubar(); - remove_wizard_from_toolbar(); 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.