discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3c20b89765690c9d665421d506c173a240f7932b
commit 3c20b89765690c9d665421d506c173a240f7932b Author: Mike Blumenkrantz <zm...@samsung.com> Date: Mon Mar 31 11:22:36 2014 -0400 +edje_object_part_object_name_get() --- src/lib/edje/Edje_Common.h | 9 +++++++++ src/lib/edje/edje_util.c | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/lib/edje/Edje_Common.h b/src/lib/edje/Edje_Common.h index 8c20fde..13269b0 100644 --- a/src/lib/edje/Edje_Common.h +++ b/src/lib/edje/Edje_Common.h @@ -2096,6 +2096,15 @@ EAPI void edje_audio_channel_mute_set(Edje_Channel channel, Eina_Bool mute); EAPI Eina_Bool edje_audio_channel_mute_get(Edje_Channel channel); /** + * Get the part name of an edje part object + * @param obj An edje part object + * @return The name of the part, if the object is an edje part, or @c NULL + * @note If this function returns @c NULL, @p obj was not an Edje part object + * @see edje_object_part_object_get() + * @since 1.10 + */ +EAPI const char *edje_object_part_object_name_get(const Evas_Object *obj); +/** * @} */ diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c index 3a1c91b..c081d33 100644 --- a/src/lib/edje/edje_util.c +++ b/src/lib/edje/edje_util.c @@ -5285,4 +5285,13 @@ _edje_subobj_unregister(Edje *ed, Evas_Object *obj) _cb_subobj_del, ed); } +EAPI const char * +edje_object_part_object_name_get(const Evas_Object *obj) +{ + Edje_Real_Part *rp; + + rp = evas_object_data_get(obj, "real_part"); + return rp ? rp->part->name : NULL; +} + /* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/ --