SF.net SVN: geany-plugins:[1135] trunk/geanylatex/src/geanylatex.c

frlan at users.sourceforge.net frlan at xxxxx
Sun Jan 17 16:29:30 UTC 2010


Revision: 1135
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1135&view=rev
Author:   frlan
Date:     2010-01-17 16:29:29 +0000 (Sun, 17 Jan 2010)

Log Message:
-----------
GeanyLaTeX: Don't try to toggle toolbaritems if toolbar is not active at all

Modified Paths:
--------------
    trunk/geanylatex/src/geanylatex.c

Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c	2010-01-17 16:29:02 UTC (rev 1134)
+++ trunk/geanylatex/src/geanylatex.c	2010-01-17 16:29:29 UTC (rev 1135)
@@ -298,7 +298,8 @@
 
 static void toggle_toolbar_items_by_file_type(gint id)
 {
-	if (glatex_deactivate_toolbaritems_with_non_latex == TRUE)
+	if (glatex_set_toolbar_active == TRUE &&
+		glatex_deactivate_toolbaritems_with_non_latex == TRUE)
 	{
 		if (id != GEANY_FILETYPES_LATEX)
 		{


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