EAPI Eina_Bool e_icon_file_get(const Evas_Object *obj, const char **file, const char **group) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(EINA_FALSE); if ((!file) && (!group)) return EINA_FALSE; if (file) *file = NULL; if (group) *group = NULL; if (!(sd = evas_object_smart_data_get(obj))) return EINA_FALSE; #ifdef USE_ICON_CACHE if (sd->file) { if (file) *file = sd->file; return EINA_TRUE; } #endif if (sd->edje) { edje_object_file_get(sd->obj, file, group); return file || group; } evas_object_image_file_get(sd->obj, file, group); return file || group; }
void theme_reload(Evas_Object *edje) { const char *file; const char *group; edje_object_file_get(edje, &file, &group); INF("file=%s, group=%s", file, group); if (!edje_object_file_set(edje, file, group)) return; }
EAPI const char * e_icon_file_get(Evas_Object *obj) { E_Smart_Data *sd; const char *file; sd = evas_object_smart_data_get(obj); if (!sd) return NULL; if (!strcmp(evas_object_type_get(sd->obj), "edje")) { edje_object_file_get(sd->obj, &file, NULL); return file; } evas_object_image_file_get(sd->obj, &file, NULL); return file; }