From 3ee05133da554ff10a931128e9232c39098d95bb Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 12 Jun 2012 08:01:12 +0000 Subject: [PATCH] never should have used this api - it never did squat diddly. bug in api set. SVN revision: 71989 --- legacy/edje/src/lib/edje_lua2.c | 44 --------------------------------- 1 file changed, 44 deletions(-) diff --git a/legacy/edje/src/lib/edje_lua2.c b/legacy/edje/src/lib/edje_lua2.c index fd88f31633..c90aab7deb 100644 --- a/legacy/edje/src/lib/edje_lua2.c +++ b/legacy/edje/src/lib/edje_lua2.c @@ -1712,7 +1712,6 @@ static int _elua_color(lua_State *L); static int _elua_obj_map(lua_State *L); static int _elua_obj_map_enable(lua_State *L); -static int _elua_obj_map_source(lua_State *L); static const char *_elua_evas_api = "evas"; static const struct luaL_reg _elua_evas_funcs [] = @@ -1759,7 +1758,6 @@ static const struct luaL_reg _elua_evas_funcs [] = // map api here {"map", _elua_obj_map}, {"map_enable", _elua_obj_map_enable}, - {"map_source", _elua_obj_map_source}, {NULL, NULL} // end }; @@ -2492,48 +2490,6 @@ _elua_obj_map_enable(lua_State *L) // Stack usage [ return 1; } -/** -@page luaref -@subsubsection evas_map_source evas_object:map_source(object) - -Sets the object as the map source for this object. - -Wraps evas_object_map_source_set(). - -@param object The map source object. - -@return A userdata reference to the current map source object. - -@since 1.1.0 -*/ -static int -_elua_obj_map_source(lua_State *L) // Stack usage [-3, +4, -] -{ - Edje_Lua_Obj *obj = (Edje_Lua_Obj *)lua_touserdata(L, 1); // Stack usage [-0, +0, -] - Edje_Lua_Evas_Object *elo = (Edje_Lua_Evas_Object *)obj; - Evas_Object *o; - Edje_Lua_Evas_Object *elo2; - int n; - - if (!_elua_isa(obj, _elua_evas_meta)) return 0; - - n = lua_gettop(L); // Stack usage [-0, +0, -] - if (n == 2) - { - Edje_Lua_Obj *obj2 = (Edje_Lua_Obj *)lua_touserdata(L, 2); // Stack usage [-0, +0, -] - const Edje_Lua_Evas_Object *source = (Edje_Lua_Evas_Object *)obj2; - - if (!_elua_isa(obj2, _elua_evas_meta)) return 0; - evas_object_map_source_set(elo->evas_obj, source->evas_obj); - } - - if (!(o = evas_object_map_source_get(elo->evas_obj))) return 0; - if (!(elo2 = evas_object_data_get(o, ELO))) return 0; - _elua_ref_get(L, elo2); // Stack usage [-3, +4, -] - - return 1; -} - //------------- //------------- /**