evas image: reload after alpha_set
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 25 May 2020 05:48:31 +0000 (14:48 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 25 May 2020 21:34:12 +0000 (06:34 +0900)
commite5c36a65bc14820ab3053411665ee8d4cff5d498
tree80594883a48818b0a1effa22e59cbef51d288689
parentd53e2b314e7c0c01654ddffaaabafc25ca0c76ff
evas image: reload after alpha_set

Summary:
The alpha_set cancels preload, and do not try to load it again.
So the image is not showing, if the alpha_set is called while preloading.

[Sample]
   Evas_Object *image = elm_image_add(box);
   elm_box_pack_end(box, image);
   evas_object_show(image);

   elm_image_file_set(image, "img.png", NULL);     // start preloading

   Evas_Object *eimg = elm_image_object_get(image);
   evas_object_image_alpha_set(eimg, EINA_TRUE);   // cancel preloading

Reviewers: Hermet, jsuya, herb

Reviewed By: Hermet

Subscribers: zmike, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11864
src/lib/evas/canvas/evas_object_image.c