discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=f2f45428fff7424c8f45e741b5bb564a696d9d81
commit f2f45428fff7424c8f45e741b5bb564a696d9d81 Author: Mike Blumenkrantz <[email protected]> Date: Thu Mar 27 09:29:56 2014 -0400 +e_icon_edje_get() --- src/bin/e_icon.c | 11 +++++++++++ src/bin/e_icon.h | 1 + 2 files changed, 12 insertions(+) diff --git a/src/bin/e_icon.c b/src/bin/e_icon.c index ff79ac6..5b9c540 100644 --- a/src/bin/e_icon.c +++ b/src/bin/e_icon.c @@ -374,6 +374,17 @@ e_icon_edje_object_set(Evas_Object *obj, Evas_Object *edje) _e_icon_smart_reconfigure(sd); } +EAPI Evas_Object * +e_icon_edje_get(Evas_Object *obj) +{ + E_Smart_Data *sd; + + if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(NULL); + if (!(sd = evas_object_smart_data_get(obj))) + return NULL; + return sd->edje ? sd->obj : NULL; +} + EAPI Eina_Bool e_icon_file_edje_set(Evas_Object *obj, const char *file, const char *part) { diff --git a/src/bin/e_icon.h b/src/bin/e_icon.h index 3f4a44f..bdb4835 100644 --- a/src/bin/e_icon.h +++ b/src/bin/e_icon.h @@ -9,6 +9,7 @@ EINTERN int e_icon_shutdown(void); EAPI Evas_Object *e_icon_add (Evas *evas); EAPI Eina_Bool e_icon_file_set (Evas_Object *obj, const char *file); EAPI Eina_Bool e_icon_file_key_set (Evas_Object *obj, const char *file, const char *key); +EAPI Evas_Object *e_icon_edje_get(Evas_Object *obj); EAPI Eina_Bool e_icon_file_edje_set (Evas_Object *obj, const char *file, const char *part); EAPI Eina_Bool e_icon_fdo_icon_set (Evas_Object *obj, const char *icon); EAPI void e_icon_edje_object_set(Evas_Object *obj, Evas_Object *edje); --
