diff options
author | David Walter Seikel | 2014-05-11 05:00:01 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-11 05:00:01 +1000 |
commit | 8982ca01141f87d3744dd3b5866b05b0117889c6 (patch) | |
tree | 096bcdaa758083efd69e55e361ce52a49fbd04a3 /src/GuiLua | |
parent | Add physics to the windows. (diff) | |
download | SledjHamr-8982ca01141f87d3744dd3b5866b05b0117889c6.zip SledjHamr-8982ca01141f87d3744dd3b5866b05b0117889c6.tar.gz SledjHamr-8982ca01141f87d3744dd3b5866b05b0117889c6.tar.bz2 SledjHamr-8982ca01141f87d3744dd3b5866b05b0117889c6.tar.xz |
Add internal window title bar, and dragging them around. Plus some related clean ups.
Diffstat (limited to '')
-rw-r--r-- | src/GuiLua/GuiLua.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c index 494be84..09c3fe9 100644 --- a/src/GuiLua/GuiLua.c +++ b/src/GuiLua/GuiLua.c | |||
@@ -196,6 +196,8 @@ static int widget(lua_State *L) | |||
196 | ); | 196 | ); |
197 | evas_object_smart_callback_add(wid->obj, "clicked", _on_click, wid); | 197 | evas_object_smart_callback_add(wid->obj, "clicked", _on_click, wid); |
198 | 198 | ||
199 | evas_object_show(win->box); | ||
200 | |||
199 | lua_pushlightuserdata(L, (void *) wid); | 201 | lua_pushlightuserdata(L, (void *) wid); |
200 | return 1; | 202 | return 1; |
201 | } | 203 | } |
@@ -259,7 +261,7 @@ static int window(lua_State *L) | |||
259 | world = gl->world; | 261 | world = gl->world; |
260 | } | 262 | } |
261 | 263 | ||
262 | win = winFangAdd(parent, 25, 25, w, h, title, name, world); | 264 | win = winFangAdd(parent, 25, 55, w, h, title, name, world); |
263 | if (gl) | 265 | if (gl) |
264 | { | 266 | { |
265 | // If there's no parent, we become the parent. | 267 | // If there's no parent, we become the parent. |