From: hermet Date: Thu, 6 Oct 2011 01:13:51 +0000 (+0000) Subject: elementary/general - added new API elm_object_item_object_get X-Git-Tag: REL_F_I9500_20120323_1~17^2~1693 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=458d72d47ab84fd53745cd7b9236a4ad2d08f5f2;p=framework%2Fuifw%2Felementary.git elementary/general - added new API elm_object_item_object_get It returns the widget object handle which contains the given item. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63861 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index b37ae53..e2512ea 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -1022,6 +1022,18 @@ extern "C" { #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL) /** + * Get the wiget object's handle which contains a given item + * + * @param item The Elementary object item + * @return The widget object + * + * @note This returns the widget object itself that an item belongs to. + * + * @ingroup General + */ + EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1); + + /** * Set a content of an object item * * @param it The Elementary object item diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index ebb01ee..280a468 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -2052,6 +2052,12 @@ elm_longpress_timeout_get(void) return _elm_config->longpress_timeout; } +EAPI Evas_Object * +elm_object_item_object_get(const Elm_Object_Item *it) +{ + return ((Elm_Widget_Item *) it)->widget; +} + EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part,