Revision: 124 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=124&view=rev Author: ntrel Date: 2008-07-17 11:22:05 +0000 (Thu, 17 Jul 2008)
Log Message: ----------- Fix use of old app macro.
Modified Paths: -------------- trunk/geanylua/ChangeLog trunk/geanylua/glspi_app.c trunk/geanylua/glspi_init.c
Modified: trunk/geanylua/ChangeLog =================================================================== --- trunk/geanylua/ChangeLog 2008-07-16 22:32:34 UTC (rev 123) +++ trunk/geanylua/ChangeLog 2008-07-17 11:22:05 UTC (rev 124) @@ -1,3 +1,6 @@ +July 17, 2008 (ntrel) + Fix use of old app macro. + July 15, 2008 (ntrel) Fix for GeanyEditor changes.
Modified: trunk/geanylua/glspi_app.c =================================================================== --- trunk/geanylua/glspi_app.c 2008-07-16 22:32:34 UTC (rev 123) +++ trunk/geanylua/glspi_app.c 2008-07-17 11:22:05 UTC (rev 124) @@ -81,6 +81,8 @@
static gint glspi_appinfo(lua_State* L) { + GeanyApp *app = geany->app; + lua_newtable(L); SetTableBool("debug", app->debug_mode); SetTableStr("configdir", app->configdir); @@ -95,7 +97,7 @@ glspi_tools(L); lua_rawset(L,1);
- if (geany->app->project) { + if (app->project) { lua_pushstring(L,"project"); glspi_project(L); lua_rawset(L,1);
Modified: trunk/geanylua/glspi_init.c =================================================================== --- trunk/geanylua/glspi_init.c 2008-07-16 22:32:34 UTC (rev 123) +++ trunk/geanylua/glspi_init.c 2008-07-17 11:22:05 UTC (rev 124) @@ -108,7 +108,7 @@
#define KEYFILE_FAIL(msg) \ -if (app->debug_mode) { \ +if (geany->app->debug_mode) { \ g_printerr("%s: %s\n", PLUGIN_NAME, msg); \ } \ g_error_free(err); \ @@ -177,13 +177,13 @@ key,mod,KG->keys[i].name,KG->keys[i].label,NULL); } } else { - if (app->debug_mode) { + if (geany->app->debug_mode) { g_printerr("%s: %s\n", PLUGIN_NAME, err->message); } g_error_free(err); } } else { - if (app->debug_mode) { + if (geany->app->debug_mode) { g_printerr("%s: File not found %s\n", PLUGIN_NAME, hotkeys_cfg); } } @@ -434,6 +434,8 @@ PLUGIN_EXPORT void glspi_init (GeanyData *data, GeanyFunctions *functions, KeyBindingGroup *kg) { + GeanyApp *app = geany->app; + glspi_geany_data = data; glspi_geany_functions = functions;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.