summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-20 11:52:20 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-20 11:52:20 -0400
commitf9202f6dca07c3784b488519d24610ac609e0633 (patch)
treeede36d2330a3a2bacd565f0f8106745c6d376ab7
parente9eb1c825a982f3f4e8ee74992bcee6d6c5a99cd (diff)
elm_test: fix some bugs in elm_image tests
Summary: * passing label object to elm_image_file_get * using fill hint during weight set @fix Reviewers: devilhorns Reviewed By: devilhorns Subscribers: devilhorns, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8914
-rw-r--r--src/bin/elementary/test_image.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/elementary/test_image.c b/src/bin/elementary/test_image.c
index 986767b1bb..18ae4dbcef 100644
--- a/src/bin/elementary/test_image.c
+++ b/src/bin/elementary/test_image.c
@@ -232,12 +232,13 @@ test_image_swallow_align(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
232static void 232static void
233_download_start_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 233_download_start_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
234{ 234{
235 Evas_Object *win = data, *txt; 235 Evas_Object *win = data, *txt, *im;
236 const char *url = NULL; 236 const char *url = NULL;
237 char buf[4096] = {0}; 237 char buf[4096] = {0};
238 238
239 txt = evas_object_data_get(win, "txt"); 239 txt = evas_object_data_get(win, "txt");
240 elm_image_file_get(txt, &url, NULL); 240 im = evas_object_data_get(win, "im");
241 elm_image_file_get(im, &url, NULL);
241 snprintf(buf, sizeof(buf) - 1, "Remote image download started:\n%s", url); 242 snprintf(buf, sizeof(buf) - 1, "Remote image download started:\n%s", url);
242 elm_object_text_set(txt, buf); 243 elm_object_text_set(txt, buf);
243 printf("%s\n", buf); 244 printf("%s\n", buf);
@@ -677,7 +678,7 @@ test_image_prescale(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
677 678
678 hbox = elm_box_add(win); 679 hbox = elm_box_add(win);
679 elm_box_horizontal_set(hbox, EINA_TRUE); 680 elm_box_horizontal_set(hbox, EINA_TRUE);
680 evas_object_size_hint_weight_set(hbox, EVAS_HINT_EXPAND, EVAS_HINT_FILL); 681 evas_object_size_hint_weight_set(hbox, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
681 evas_object_size_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL); 682 evas_object_size_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL);
682 683
683 rd = elm_radio_add(win); 684 rd = elm_radio_add(win);