From 443133b9b612899777a93fe9371b5f5b27a95984 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 13 May 2014 18:13:20 +1000 Subject: GuiLuaLoad() now returns the GuiLua it loaded, and adds the name. Use that for the purkle load in extantz. --- src/extantz/extantz.c | 2 +- src/extantz/extantz.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/extantz') diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index 8d533fd..a6ffad7 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c @@ -626,7 +626,7 @@ EAPI_MAIN int elm_main(int argc, char **argv) // overlay_add(&ourGlobals); GuiLuaLoad("test", ourGlobals.mainWindow, ourGlobals.world); woMan_add(&ourGlobals); - GuiLuaLoad("purkle", ourGlobals.mainWindow, ourGlobals.world); + ourGlobals.purkle = GuiLuaLoad("purkle", ourGlobals.mainWindow, ourGlobals.world); ourGlobals.files = filesAdd(&ourGlobals, (char *) elm_app_data_dir_get(), EINA_TRUE, EINA_FALSE); // Bump the top toolbar above the windows. diff --git a/src/extantz/extantz.h b/src/extantz/extantz.h index d24f23c..0bbf76f 100644 --- a/src/extantz/extantz.h +++ b/src/extantz/extantz.h @@ -227,6 +227,7 @@ typedef struct _globals EPhysics_World *world; winFang *files; + GuiLua *purkle; Ecore_Con_Server *server; const char *address; -- cgit v1.1