aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/GuiLua/GuiLua.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-20 23:34:25 +1000
committerDavid Walter Seikel2014-05-20 23:34:25 +1000
commit909fd6e2c4369020707782e20656069fbb3030d1 (patch)
tree15590f94950be42916fff1b3ba00124bce157751 /src/GuiLua/GuiLua.c
parentThe results of a session with valgrind. (diff)
downloadSledjHamr-909fd6e2c4369020707782e20656069fbb3030d1.zip
SledjHamr-909fd6e2c4369020707782e20656069fbb3030d1.tar.gz
SledjHamr-909fd6e2c4369020707782e20656069fbb3030d1.tar.bz2
SledjHamr-909fd6e2c4369020707782e20656069fbb3030d1.tar.xz
Found a way to deal with the PACKAGE_* stuff outside of Elm. It's undocumented.
Diffstat (limited to 'src/GuiLua/GuiLua.c')
-rw-r--r--src/GuiLua/GuiLua.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c
index 5815b45..1ffbc0f 100644
--- a/src/GuiLua/GuiLua.c
+++ b/src/GuiLua/GuiLua.c
@@ -142,12 +142,10 @@ and ordinary elementary widgets. Proper introspection can come later.
142*/ 142*/
143 143
144 144
145#include "LumbrJack.h"
146#include "GuiLua.h" 145#include "GuiLua.h"
147#include "Runnr.h" 146#include "Runnr.h"
148 147
149 148
150static int logDom; // Our logging domain.
151const char *glName = "ourGuiLua"; 149const char *glName = "ourGuiLua";
152 150
153/* Sooo, how to do this - 151/* Sooo, how to do this -
@@ -373,7 +371,6 @@ int luaopen_GuiLua(lua_State *L)
373 371
374printf("**********************require GuiLua\n"); 372printf("**********************require GuiLua\n");
375 // In theory this function only ever gets called once. 373 // In theory this function only ever gets called once.
376 logDom = loggingStartup("GuiLua", logDom);
377 374
378 elm_policy_set(ELM_POLICY_EXIT, ELM_POLICY_EXIT_NONE); 375 elm_policy_set(ELM_POLICY_EXIT, ELM_POLICY_EXIT_NONE);
379 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_NONE); 376 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_NONE);
@@ -474,18 +471,13 @@ GuiLua *GuiLuaDo(int argc, char **argv, winFang *parent, EPhysics_World *world)
474 PE("Error running - skang.loopWindow()"); 471 PE("Error running - skang.loopWindow()");
475 GuiLuaDel(result); 472 GuiLuaDel(result);
476 result = NULL; 473 result = NULL;
477 if (logDom >= 0)
478 {
479 eina_log_domain_unregister(logDom);
480 logDom = -1;
481 }
482 474
483 // This shuts down Elementary, but keeps the main loop running until all ecore_evas are freed. 475 // This shuts down Elementary, but keeps the main loop running until all ecore_evas are freed.
484 elm_shutdown(); 476 elm_shutdown();
485 } 477 }
486 } 478 }
487 else 479 else
488 fprintf(stderr, "Failed to start Lua!\n"); 480 PE("Failed to start Lua!");
489 481
490 return result; 482 return result;
491} 483}