From: onefang Date: Thu, 10 Nov 2011 16:59:21 +0000 (+0000) Subject: Actually implement the 5 param version of map:populate. X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~595 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69193f54b9b196a4ae4e5346c58a0e4388e0eab6;p=profile%2Fivi%2Fedje.git Actually implement the 5 param version of map:populate. Plus - let another TODO sneak in. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@65026 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_lua2.c b/src/lib/edje_lua2.c index 51acaf8..d1b025a 100644 --- a/src/lib/edje_lua2.c +++ b/src/lib/edje_lua2.c @@ -1332,6 +1332,7 @@ _elua_2_int_get(lua_State *L, int i, Eina_Bool tr, // int % // num # // str $ +// Can also have a matching _elua_ret("%i#f$str", i, f, str)); static int _elua_str_int_get(lua_State *L, int i, Eina_Bool tr, const char *n1, char **v1, @@ -2558,9 +2559,14 @@ _elua_map_populate(lua_State *L) break; } - default : + case 6 : { - // FIXME: unpack 5 integers and pass them to evas_map_util_points_populate_from_geometry() + Evas_Coord x, y, w, h; + + if (n = _elua_4_int_get(L, 2, EINA_FALSE, "x", &x, "y", &y, "w", &w, "h", &h) > 0) + { + evas_map_util_points_populate_from_geometry(elm->map, x, y, w, h, lua_tointeger(L, 2 + n)); + } break; } }