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

frlan at users.sourceforge.net frlan at xxxxx
Mon Jan 4 14:33:00 UTC 2010


Revision: 1110
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1110&view=rev
Author:   frlan
Date:     2010-01-04 14:32:59 +0000 (Mon, 04 Jan 2010)

Log Message:
-----------
GeanyLaTeX: Use return code of on_document_activate() for return code of functions calling it

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

Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c	2010-01-03 23:23:42 UTC (rev 1109)
+++ trunk/geanylatex/src/geanylatex.c	2010-01-04 14:32:59 UTC (rev 1110)
@@ -269,15 +269,13 @@
 
 static on_document_open(GObject *object, GeanyDocument *doc, gpointer data)
 {
-	on_document_activate(object, doc, data);
-	return FALSE;
+	return on_document_activate(object, doc, data);
 }
 
 
 static on_document_new(GObject *object, GeanyDocument *doc, gpointer data)
 {
-	on_document_activate(object, doc, data);
-	return FALSE;
+	return on_document_activate(object, doc, data);
 }
 
 
@@ -288,7 +286,7 @@
 	{
 		GeanyFiletype *ft = doc->file_type;
 		if (filetype_old != NULL && filetype_old->id != ft->id)
-			on_document_activate(obj, doc, user_data);
+			return on_document_activate(obj, doc, user_data);
 	}
 	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