From 910a06db9e7edc084aa62cda0d3ce98f6c65181c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 18 Apr 2014 01:14:31 +1000 Subject: TODO and comment additions. --- ClientHamr/GuiLua/GuiLua.c | 5 +++++ ClientHamr/GuiLua/skang.lua | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ClientHamr/GuiLua/GuiLua.c b/ClientHamr/GuiLua/GuiLua.c index ec8c23e..9ef60de 100644 --- a/ClientHamr/GuiLua/GuiLua.c +++ b/ClientHamr/GuiLua/GuiLua.c @@ -521,10 +521,14 @@ int push_lua(lua_State *L, char *params, ...) // Stack usage [-0, +n, em] } +// TODO - These functions should be able to deal with multiple windows. +// TODO - Should be able to open external and internal windows, and even switch between them on the fly. static void _on_done(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { // globals *ourGlobals = data; +// TODO - skang.quit() should do this to. + // Tell the main loop to stop, which it will, eventually. elm_exit(); } @@ -585,6 +589,7 @@ static int closeWindow(lua_State *L) ourGlobals->logDom = -1; } + // This shuts down Elementary, but keeps the main loop running until all ecore_evas are freed. elm_shutdown(); return 0; diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index 88bd6fb..5dbf36f 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -991,7 +991,7 @@ thingasm('set', 'Set the current value of an existing Thing or metadata.', set, thingasm('nada', 'Do nothing.', function () --[[ This function intentionally left blank. ]] end) --- TODO - Some function stubs, for now. Fill them up later. +-- TODO - Some function stubs, for now. Fill them up later. Probably move the lot to GuiLua.c. clear = function () end @@ -1004,7 +1004,7 @@ thingasm('clear', 'The current skin is cleared of all widgets.', clear) thingasm('skang', 'Parse the contents of a skang file or URL.', skang, 'URL') thingasm('quit', 'Quit, exit, remove thyself.', quit) --- This moved to the widget module, but it's not all there yet. +-- TODO - This moved to the GuiLua.c, but it's not all there yet. --thingasm{'window', 'The size and title of the application Frame.', window, 'x,y,name', acl='GGG'} -- cgit v1.1