From f9c15e4c73119d27bcd928040e030ac7ab23f579 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 5 May 2014 05:47:32 +1000 Subject: _on_done() no longer needed in GuiLUa, it's in winFang. --- src/GuiLua/GuiLua.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/GuiLua') 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 } } -static void _on_done(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) -{ -// globals *ourGlobals = data; - - // Tell the main loop to stop, which it will, eventually. - elm_exit(); -} - static int widget(lua_State *L) { globals *ourGlobals; @@ -298,13 +290,7 @@ static int loopWindow(lua_State *L) static int quit(lua_State *L) { - globals *ourGlobals; - - lua_getfield(L, LUA_REGISTRYINDEX, globName); - ourGlobals = lua_touserdata(L, -1); - lua_pop(L, 1); - - _on_done(ourGlobals, NULL, NULL); + elm_exit(); return 0; } -- cgit v1.1