diff options
author | David Walter Seikel | 2014-04-18 01:14:03 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-18 01:14:03 +1000 |
commit | 8fadf62258c4b70cc5176ea9678fc6e43bbb3d1f (patch) | |
tree | 1666ba5f00306cf82efa9536b0e5d7768225677b /ClientHamr | |
parent | Merge the widget module into the skang module, and some related clean ups. (diff) | |
download | SledjHamr-8fadf62258c4b70cc5176ea9678fc6e43bbb3d1f.zip SledjHamr-8fadf62258c4b70cc5176ea9678fc6e43bbb3d1f.tar.gz SledjHamr-8fadf62258c4b70cc5176ea9678fc6e43bbb3d1f.tar.bz2 SledjHamr-8fadf62258c4b70cc5176ea9678fc6e43bbb3d1f.tar.xz |
Added some elm policy and config stuff.
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/GuiLua.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/GuiLua.c b/ClientHamr/GuiLua/GuiLua.c index c463eca..ec8c23e 100644 --- a/ClientHamr/GuiLua/GuiLua.c +++ b/ClientHamr/GuiLua/GuiLua.c | |||
@@ -610,6 +610,14 @@ int luaopen_libGuiLua(lua_State *L) | |||
610 | memset(&ourGlobals, 0, sizeof(globals)); | 610 | memset(&ourGlobals, 0, sizeof(globals)); |
611 | loggingStartup(&ourGlobals); | 611 | loggingStartup(&ourGlobals); |
612 | 612 | ||
613 | elm_policy_set(ELM_POLICY_EXIT, ELM_POLICY_EXIT_NONE); | ||
614 | elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_NONE); | ||
615 | elm_policy_set(ELM_POLICY_THROTTLE, ELM_POLICY_THROTTLE_HIDDEN_ALWAYS); | ||
616 | |||
617 | // These are set via the elementary_config tool, which is hard to find. | ||
618 | elm_config_finger_size_set(0); | ||
619 | elm_config_scale_set(1.0); | ||
620 | |||
613 | // pseudo-indices, special tables that can be accessed like the stack - | 621 | // pseudo-indices, special tables that can be accessed like the stack - |
614 | // LUA_GLOBALSINDEX - thread environment, where globals are | 622 | // LUA_GLOBALSINDEX - thread environment, where globals are |
615 | // LUA_ENVIRONINDEX - C function environment, in this case luaopen_widget() is the C function | 623 | // LUA_ENVIRONINDEX - C function environment, in this case luaopen_widget() is the C function |