SF.net SVN: geany-plugins:[1087] trunk/geanylatex

frlan at users.sourceforge.net frlan at xxxxx
Wed Dec 23 21:32:15 UTC 2009


Revision: 1087
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1087&view=rev
Author:   frlan
Date:     2009-12-23 21:32:14 +0000 (Wed, 23 Dec 2009)

Log Message:
-----------
Do only special character replacement in case of we really have an LaTeX file here.

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

Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog	2009-12-21 13:54:56 UTC (rev 1086)
+++ trunk/geanylatex/ChangeLog	2009-12-23 21:32:14 UTC (rev 1087)
@@ -1,3 +1,9 @@
+2009-12-23  Frank Lanitz  <frank at frank.uvena.de>
+
+ * Do only special character replacement in case of we really have 
+   an LaTeX file here.
+
+
 2009-12-13  Frank Lanitz  <frank at frank.uvena.de>
 
  * Show geanyLaTeX inside plugin manager.

Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c	2009-12-21 13:54:56 UTC (rev 1086)
+++ trunk/geanylatex/src/geanylatex.c	2009-12-23 21:32:14 UTC (rev 1087)
@@ -239,7 +239,12 @@
 									SCNotification *nt, G_GNUC_UNUSED gpointer data)
 {
 	g_return_val_if_fail(editor != NULL, FALSE);
-
+	
+	/* Check whether this is a LaTeX file at all. If not, we mot likely 
+	 * don't want to do anything */
+	if (editor->document->file_type->id != GEANY_FILETYPES_LATEX)
+		return FALSE;
+	
 	if (toggle_active != TRUE)
 		return FALSE;
 


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