elm_image: make "elm_image" visible in smart_show func regardless of preloading status 88/144888/1
authorJaeun Choi <jaeun12.choi@samsung.com>
Fri, 6 Jan 2017 05:02:20 +0000 (14:02 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 18 Aug 2017 08:00:26 +0000 (17:00 +0900)
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: I67e236df6d41e83bd7e9135e6005c05ea7a50728

src/lib/elm_image.c

index dacf47f7783e25301e53f062c4a46e4837bbf006..174eb9e4c69ab9459d19e63e9e1a48d30128b13c 100644 (file)
@@ -642,10 +642,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);
 
    _prev_img_del(sd);