From 9eb211845cf4be36c892722d2a008552c426d38f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 20 Apr 2017 18:59:02 +0900 Subject: [PATCH] elm_image: Improve test case from previous patch This refers to 331bf9f74683aad72415e007af14c3d4713f112b See also, for 1.19: 4eda12b5e1d6e968fb0b057f11c280a87916e93f --- src/bin/elementary/test_image.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bin/elementary/test_image.c b/src/bin/elementary/test_image.c index 5da9f6c..67f90dd 100644 --- a/src/bin/elementary/test_image.c +++ b/src/bin/elementary/test_image.c @@ -412,6 +412,10 @@ _switch_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_ { Evas_Object *win = data; Evas_Object *im = evas_object_data_get(win, "im"); + Evas_Object *chk1 = evas_object_data_get(win, "chk1"); + Evas_Object *chk2 = evas_object_data_get(win, "chk2"); + Eina_Bool async = elm_check_state_get(chk1); + Eina_Bool preload = elm_check_state_get(chk2); char buf[PATH_MAX] = {0}; Eina_Bool logo = EINA_FALSE; const char *file = NULL; @@ -427,6 +431,9 @@ _switch_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_ { snprintf(buf, sizeof(buf) - 1, "%s/images/logo.png", elm_app_data_dir_get()); } + + elm_image_async_open_set(im, async); + elm_image_preload_disabled_set(im, preload); elm_image_file_set(im, buf, NULL); } -- 2.7.4