rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=a217faa3234f6acfd9e7f64fc264cece98a7d9ef

commit a217faa3234f6acfd9e7f64fc264cece98a7d9ef
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Mon Jan 18 16:54:50 2016 +0200

    groupedit: load USER image by name
    
    Change-Id: I58334ffa482faca7f3cd565c4911172a247ee322
---
 src/bin/ui/workspace/groupedit_calc.c | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/bin/ui/workspace/groupedit_calc.c 
b/src/bin/ui/workspace/groupedit_calc.c
index 941e386..23ac562 100644
--- a/src/bin/ui/workspace/groupedit_calc.c
+++ b/src/bin/ui/workspace/groupedit_calc.c
@@ -829,13 +829,20 @@ _image_param_update(Groupedit_Part *gp, Evas_Object 
*edit_obj)
 
    image_normal = edje_edit_state_image_get(edit_obj, gp->part->name, state, 
value);
    if (!image_normal) return;
-   id = edje_edit_image_id_get(edit_obj, image_normal);
-   edje_edit_string_free(image_normal);
-   buf = eina_stringshare_printf("edje/images/%i", id);
-   evas_object_image_file_set(gp->proxy_part, ap.project->dev, buf);
-   err = evas_object_image_load_error_get(gp->proxy_part);
-   if (err != EVAS_LOAD_ERROR_NONE)
-     WARN("Could not update image:\"%s\"\n", evas_load_error_str(err));
+   if (edje_edit_image_compression_type_get(edit_obj, image_normal) == 
EDJE_EDIT_IMAGE_COMP_USER)
+     {
+        evas_object_image_file_set(gp->proxy_part, image_normal, NULL);
+     }
+   else
+     {
+        id = edje_edit_image_id_get(edit_obj, image_normal);
+        edje_edit_string_free(image_normal);
+        buf = eina_stringshare_printf("edje/images/%i", id);
+        evas_object_image_file_set(gp->proxy_part, ap.project->dev, buf);
+        err = evas_object_image_load_error_get(gp->proxy_part);
+        if (err != EVAS_LOAD_ERROR_NONE)
+          WARN("Could not update image:\"%s\"\n", evas_load_error_str(err));
+     }
 
    edje_edit_state_image_border_get(edit_obj, gp->part->name, state, value,
                                     &bl, &br, &bt, &bb);

-- 


Reply via email to