aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/GuiLua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-05 05:47:32 +1000
committerDavid Walter Seikel2014-05-05 05:47:32 +1000
commitf9c15e4c73119d27bcd928040e030ac7ab23f579 (patch)
tree8a6b1a36c1adfa0c1ad6dbdfb6a2e73f61c95f9b /src/GuiLua
parentMove winFang to libraries, and convert GuiLua to use it. (diff)
downloadSledjHamr-f9c15e4c73119d27bcd928040e030ac7ab23f579.zip
SledjHamr-f9c15e4c73119d27bcd928040e030ac7ab23f579.tar.gz
SledjHamr-f9c15e4c73119d27bcd928040e030ac7ab23f579.tar.bz2
SledjHamr-f9c15e4c73119d27bcd928040e030ac7ab23f579.tar.xz
_on_done() no longer needed in GuiLUa, it's in winFang.
Diffstat (limited to 'src/GuiLua')
-rw-r--r--src/GuiLua/GuiLua.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c
index 21c9bdf..c67788e 100644
--- a/src/GuiLua/GuiLua.c
+++ b/src/GuiLua/GuiLua.c
@@ -178,14 +178,6 @@ static void _on_click(void *data, Evas_Object *obj, void *event_info EINA_UNUSED
178 } 178 }
179} 179}
180 180
181static void _on_done(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
182{
183// globals *ourGlobals = data;
184
185 // Tell the main loop to stop, which it will, eventually.
186 elm_exit();
187}
188
189static int widget(lua_State *L) 181static int widget(lua_State *L)
190{ 182{
191 globals *ourGlobals; 183 globals *ourGlobals;
@@ -298,13 +290,7 @@ static int loopWindow(lua_State *L)
298 290
299static int quit(lua_State *L) 291static int quit(lua_State *L)
300{ 292{
301 globals *ourGlobals; 293 elm_exit();
302
303 lua_getfield(L, LUA_REGISTRYINDEX, globName);
304 ourGlobals = lua_touserdata(L, -1);
305 lua_pop(L, 1);
306
307 _on_done(ourGlobals, NULL, NULL);
308 294
309 return 0; 295 return 0;
310} 296}