SF.net SVN: geany-plugins: [122] trunk/geanyvc/geanyvc.c

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


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

Log Message:
-----------
GeanyVC: Make plugin work together with Geany plugin API v78

Modified Paths:
--------------
    trunk/geanyvc/geanyvc.c

Modified: trunk/geanyvc/geanyvc.c
===================================================================
--- trunk/geanyvc/geanyvc.c	2008-07-15 19:13:59 UTC (rev 121)
+++ trunk/geanyvc/geanyvc.c	2008-07-15 19:14:44 UTC (rev 122)
@@ -32,6 +32,7 @@
 #include "support.h"
 #include "plugindata.h"
 #include "document.h"
+#include "editor.h"
 #include "filetypes.h"
 #include "utils.h"
 #include "ui_utils.h"
@@ -55,7 +56,7 @@
 GeanyFunctions *geany_functions;
 
 
-PLUGIN_VERSION_CHECK(71);
+PLUGIN_VERSION_CHECK(78);
 PLUGIN_SET_INFO(_("VC"), _("Interface to different Version Control systems."), VERSION,
 		_("Yura Siamashka <yurand2 at gmail.com>,\nFrank Lanitz <frank at frank.uvena.de>"));
 
@@ -348,9 +349,9 @@
 		}
 		else
 		{
-			p_sci->set_text(doc->sci, std_output);
+			p_sci->set_text(doc->editor->sci, std_output);
 			book = GTK_NOTEBOOK(geany->main_widgets->notebook);
-			page = gtk_notebook_page_num(book, GTK_WIDGET(doc->sci));
+			page = gtk_notebook_page_num(book, GTK_WIDGET(doc->editor->sci));
 			gtk_notebook_set_current_page(book, page);
 		}
 		p_document->set_text_changed(doc, set_changed_flag);


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