elm_image: make "elm_image" visible in smart_show func regardless of preloading status 65/108865/2
authorJaeun Choi <jaeun12.choi@samsung.com>
Fri, 6 Jan 2017 05:02:20 +0000 (14:02 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 6 Jan 2017 06:16:51 +0000 (22:16 -0800)
even though sd->img should be hidden while preloading,
the elm_image object itself need to be marked as visible
so related jobs can be done on elm_widget level.

Change-Id: I1a1603027ab9b064c3386ef78b1e15343edfd6ed

src/lib/elm_image.c

index 7f411baae5b048775f84623a0d64db32b3ab2fe9..c8b741cdce2ecc66d0d66676d16943fea997f162 100644 (file)
@@ -630,10 +630,17 @@ EOLIAN static void
 _elm_image_evas_object_smart_show(Eo *obj, Elm_Image_Data *sd)
 {
    sd->show = EINA_TRUE;
-   if (sd->preload_status == ELM_IMAGE_PRELOADING) return;
-
    eo_do_super(obj, MY_CLASS, evas_obj_smart_show());
 
+   if (sd->preload_status == ELM_IMAGE_PRELOADING)
+     {
+        //TIZEN_ONLY(20170106): This code will be added in upstream
+        //                      after a related patch is applied in evas
+        evas_object_hide(sd->img);
+        //
+        return;
+     }
+
    evas_object_show(sd->img);
 
    ELM_SAFE_FREE(sd->prev_img, evas_object_del);