summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_smart.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/emotion/emotion_smart.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index 8ba69400b7..93cf1975ff 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -1262,6 +1262,26 @@ emotion_object_meta_info_get(const Evas_Object *obj, Emotion_Meta_Info meta)
1262 return emotion_engine_instance_meta_get(sd->engine_instance, id); 1262 return emotion_engine_instance_meta_get(sd->engine_instance, id);
1263} 1263}
1264 1264
1265
1266EAPI Evas_Object *
1267emotion_file_meta_artwork_get(const Evas_Object *obj, const char *path, Emotion_Artwork_Info type)
1268{
1269 Efl_Canvas_Video_Data *sd;
1270 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, NULL);
1271 if (!sd->engine_instance) return NULL;
1272
1273 Evas *ev = evas_object_evas_get(obj);
1274 Evas_Object *artwork = evas_object_image_add(ev);
1275
1276 Evas_Object *result = emotion_engine_instance_meta_artwork_get(sd->engine_instance, artwork, path, type);
1277 if (!result) return NULL;
1278
1279 Evas_Load_Error _error = evas_object_image_load_error_get(result);
1280 if (_error != EVAS_LOAD_ERROR_NONE) return NULL;
1281
1282 return result;
1283}
1284
1265EAPI void 1285EAPI void
1266emotion_object_vis_set(Evas_Object *obj, Emotion_Vis visualization) 1286emotion_object_vis_set(Evas_Object *obj, Emotion_Vis visualization)
1267{ 1287{