SF.net SVN: geany-plugins: [109] trunk/geanylua

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Jul 11 11:26:05 UTC 2008


Revision: 109
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=109&view=rev
Author:   ntrel
Date:     2008-07-11 04:26:03 -0700 (Fri, 11 Jul 2008)

Log Message:
-----------
Add macro for main_widgets, fix project access.

Modified Paths:
--------------
    trunk/geanylua/ChangeLog
    trunk/geanylua/glspi.h
    trunk/geanylua/glspi_app.c
    trunk/geanylua/glspi_ver.h

Modified: trunk/geanylua/ChangeLog
===================================================================
--- trunk/geanylua/ChangeLog	2008-07-11 11:19:47 UTC (rev 108)
+++ trunk/geanylua/ChangeLog	2008-07-11 11:26:03 UTC (rev 109)
@@ -1,5 +1,6 @@
 July 11, 2008 (ntrel)
   Use plugin_init(), plugin_cleanup().
+  Add macro for main_widgets, fix project access.
 
 July 10, 2008 (ntrel)
   Convert doc_array usage to documents_array.

Modified: trunk/geanylua/glspi.h
===================================================================
--- trunk/geanylua/glspi.h	2008-07-11 11:19:47 UTC (rev 108)
+++ trunk/geanylua/glspi.h	2008-07-11 11:26:03 UTC (rev 109)
@@ -24,6 +24,7 @@
 #include "ui_utils.h"
 
 #include "pluginmacros.h"
+#define main_widgets	geany->main_widgets
 
 #include "glspi_ver.h"
 

Modified: trunk/geanylua/glspi_app.c
===================================================================
--- trunk/geanylua/glspi_app.c	2008-07-11 11:19:47 UTC (rev 108)
+++ trunk/geanylua/glspi_app.c	2008-07-11 11:26:03 UTC (rev 109)
@@ -56,6 +56,8 @@
 
 static gint glspi_project(lua_State* L)
 {
+	GeanyProject *project = geany->app->project;
+	
 	if (project) {
 		lua_newtable(L);
 		SetTableStr("name", project->name);
@@ -92,7 +94,7 @@
 	glspi_tools(L);
 	lua_rawset(L,1);
 
-	if (project) {
+	if (geany->app->project) {
 		lua_pushstring(L,"project");
 		glspi_project(L);
 		lua_rawset(L,1);

Modified: trunk/geanylua/glspi_ver.h
===================================================================
--- trunk/geanylua/glspi_ver.h	2008-07-11 11:19:47 UTC (rev 108)
+++ trunk/geanylua/glspi_ver.h	2008-07-11 11:26:03 UTC (rev 109)
@@ -14,7 +14,7 @@
 
 #define PLUGIN_AUTHOR "Jeff Pohlmeyer"
 
-#define MY_GEANY_API_VER 73
+#define MY_GEANY_API_VER 75
 
 #define LUA_MODULE_NAME "geany"
 


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