aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/GuiLua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/GuiLua/GuiLua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c
index 09c3fe9..2e16927 100644
--- a/src/GuiLua/GuiLua.c
+++ b/src/GuiLua/GuiLua.c
@@ -175,10 +175,13 @@ static int widget(lua_State *L)
175 winFang *win = NULL; 175 winFang *win = NULL;
176 char *type = "button"; 176 char *type = "button";
177 char *title = ":"; 177 char *title = ":";
178 int x = 1, y = 1, w = WIDTH/3, h = HEIGHT/3; 178 int x = 1, y = 1, w = WIDTH/3, h = HEIGHT/3, cy;
179 179
180 pull_lua(L, 1, "*window $type $title %x %y %w %h", &win, &type, &title, &x, &y, &w, &h); 180 pull_lua(L, 1, "*window $type $title %x %y %w %h", &win, &type, &title, &x, &y, &w, &h);
181 181
182 evas_object_geometry_get(win->content, NULL, &cy, NULL, NULL);
183 y += cy;
184
182 // Poor mans introspection, until I write real introspection into EFL. 185 // Poor mans introspection, until I write real introspection into EFL.
183 // TODO - The alternative is to just lookup the ELM_*_CLASS in a hash table? 186 // TODO - The alternative is to just lookup the ELM_*_CLASS in a hash table?
184 if (strcmp(type, "button") == 0) 187 if (strcmp(type, "button") == 0)