diff options
author | David Walter Seikel | 2014-04-18 01:14:31 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-18 01:14:31 +1000 |
commit | 910a06db9e7edc084aa62cda0d3ce98f6c65181c (patch) | |
tree | 5b6f391c8677cde3253665547af888aedb4e144d /ClientHamr | |
parent | Added some elm policy and config stuff. (diff) | |
download | SledjHamr-910a06db9e7edc084aa62cda0d3ce98f6c65181c.zip SledjHamr-910a06db9e7edc084aa62cda0d3ce98f6c65181c.tar.gz SledjHamr-910a06db9e7edc084aa62cda0d3ce98f6c65181c.tar.bz2 SledjHamr-910a06db9e7edc084aa62cda0d3ce98f6c65181c.tar.xz |
TODO and comment additions.
Diffstat (limited to 'ClientHamr')
-rw-r--r-- | ClientHamr/GuiLua/GuiLua.c | 5 | ||||
-rw-r--r-- | 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] | |||
521 | } | 521 | } |
522 | 522 | ||
523 | 523 | ||
524 | // TODO - These functions should be able to deal with multiple windows. | ||
525 | // TODO - Should be able to open external and internal windows, and even switch between them on the fly. | ||
524 | static void _on_done(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | 526 | static void _on_done(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) |
525 | { | 527 | { |
526 | // globals *ourGlobals = data; | 528 | // globals *ourGlobals = data; |
527 | 529 | ||
530 | // TODO - skang.quit() should do this to. | ||
531 | // Tell the main loop to stop, which it will, eventually. | ||
528 | elm_exit(); | 532 | elm_exit(); |
529 | } | 533 | } |
530 | 534 | ||
@@ -585,6 +589,7 @@ static int closeWindow(lua_State *L) | |||
585 | ourGlobals->logDom = -1; | 589 | ourGlobals->logDom = -1; |
586 | } | 590 | } |
587 | 591 | ||
592 | // This shuts down Elementary, but keeps the main loop running until all ecore_evas are freed. | ||
588 | elm_shutdown(); | 593 | elm_shutdown(); |
589 | 594 | ||
590 | return 0; | 595 | 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, | |||
991 | thingasm('nada', 'Do nothing.', function () --[[ This function intentionally left blank. ]] end) | 991 | thingasm('nada', 'Do nothing.', function () --[[ This function intentionally left blank. ]] end) |
992 | 992 | ||
993 | 993 | ||
994 | -- TODO - Some function stubs, for now. Fill them up later. | 994 | -- TODO - Some function stubs, for now. Fill them up later. Probably move the lot to GuiLua.c. |
995 | clear = function () | 995 | clear = function () |
996 | end | 996 | end |
997 | 997 | ||
@@ -1004,7 +1004,7 @@ thingasm('clear', 'The current skin is cleared of all widgets.', clear) | |||
1004 | thingasm('skang', 'Parse the contents of a skang file or URL.', skang, 'URL') | 1004 | thingasm('skang', 'Parse the contents of a skang file or URL.', skang, 'URL') |
1005 | thingasm('quit', 'Quit, exit, remove thyself.', quit) | 1005 | thingasm('quit', 'Quit, exit, remove thyself.', quit) |
1006 | 1006 | ||
1007 | -- This moved to the widget module, but it's not all there yet. | 1007 | -- TODO - This moved to the GuiLua.c, but it's not all there yet. |
1008 | --thingasm{'window', 'The size and title of the application Frame.', window, 'x,y,name', acl='GGG'} | 1008 | --thingasm{'window', 'The size and title of the application Frame.', window, 'x,y,name', acl='GGG'} |
1009 | 1009 | ||
1010 | 1010 | ||