diff options
Diffstat (limited to '')
-rw-r--r-- | src/GuiLua/GuiLua.c | 16 |
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 | ||
181 | static 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 | |||
189 | static int widget(lua_State *L) | 181 | static 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 | ||
299 | static int quit(lua_State *L) | 291 | static 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 | } |