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

frlan at users.sourceforge.net frlan at xxxxx
Tue Jul 15 19:14:18 UTC 2008


Revision: 121
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=121&view=rev
Author:   frlan
Date:     2008-07-15 12:13:59 -0700 (Tue, 15 Jul 2008)

Log Message:
-----------
GeanyLaTeX: Make plugin work together with plugin API v78

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

Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog	2008-07-15 18:17:46 UTC (rev 120)
+++ trunk/geanylatex/ChangeLog	2008-07-15 19:13:59 UTC (rev 121)
@@ -1,3 +1,8 @@
+2008-07-15  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>
+
+ * Make plugin work together with Geany plugin API v78.
+
+
 2008-07-11  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>
 
  * Make plugin compile with Geany svn r2767.

Modified: trunk/geanylatex/geanylatex.c
===================================================================
--- trunk/geanylatex/geanylatex.c	2008-07-15 18:17:46 UTC (rev 120)
+++ trunk/geanylatex/geanylatex.c	2008-07-15 19:13:59 UTC (rev 121)
@@ -26,6 +26,7 @@
 #include "support.h"
 #include "plugindata.h"
 #include "document.h"
+#include "editor.h"
 #include "filetypes.h"
 #include "templates.h"
 #include "utils.h"
@@ -46,7 +47,7 @@
 GeanyFunctions	*geany_functions;
 
 
-PLUGIN_VERSION_CHECK(71)
+PLUGIN_VERSION_CHECK(78)
 PLUGIN_SET_INFO(_("LaTeX"), _("Plugin to make Geany better support LaTeX"), "0.2-dev",
 	    "Frank Lanitz <frank at frank.uvena.de>")
 
@@ -98,8 +99,8 @@
 
 	if (doc != NULL)
 	{
-		gint pos = p_sci->get_current_position(doc->sci);
-		p_sci->insert_text(doc->sci, pos, string);
+		gint pos = p_sci->get_current_position(doc->editor->sci);
+		p_sci->insert_text(doc->editor->sci, pos, 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