summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_image.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-09-17 14:00:19 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-18 18:04:59 +0200
commit011022ae1bba69334c42a70ae620f9acc9ff792a (patch)
tree882c8c45c6648ec1e526428e28a27c988ce3e4be /src/bin/elementary/test_ui_image.c
parent3139371932303b2b21439d3abb51b3293c7ee02d (diff)
efl/radio/box: handle non-radio-objects
this improves the usefulness of radio box by presenting it as a box widget which has the additional feature of being able to manage radio widgets also fix all the image cases in elm_test which relied on there being only a single box in the window Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9998
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_ui_image.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/elementary/test_ui_image.c b/src/bin/elementary/test_ui_image.c
index c93fd4c..5e7e254 100644
--- a/src/bin/elementary/test_ui_image.c
+++ b/src/bin/elementary/test_ui_image.c
@@ -73,7 +73,7 @@ test_ui_image(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, void *event_info EIN
73 efl_key_data_set(win, "rdg", box); 73 efl_key_data_set(win, "rdg", box);
74 74
75 im = img_add(win, "/images/logo.png"); 75 im = img_add(win, "/images/logo.png");
76 efl_content_set(win, im); 76 efl_pack(box, im);
77 77
78 for (i = 0; images_orient[i].name; ++i) 78 for (i = 0; images_orient[i].name; ++i)
79 { 79 {
@@ -152,7 +152,7 @@ test_ui_image_scale_type(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, void *eve
152 elm_image_file_set(im, buf, NULL); 152 elm_image_file_set(im, buf, NULL);
153 efl_gfx_hint_weight_set(im, 1.0, 1.0); 153 efl_gfx_hint_weight_set(im, 1.0, 1.0);
154 efl_gfx_hint_fill_set(im, EINA_TRUE, EINA_TRUE); 154 efl_gfx_hint_fill_set(im, EINA_TRUE, EINA_TRUE);
155 efl_content_set(win, im); 155 efl_pack(box, im);
156 156
157 efl_key_data_set(win, "im", im); 157 efl_key_data_set(win, "im", im);
158 158
@@ -320,7 +320,6 @@ test_remote_ui_image(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, void *event_i
320 320
321 box2 = efl_add(EFL_UI_RADIO_BOX_CLASS, win); 321 box2 = efl_add(EFL_UI_RADIO_BOX_CLASS, win);
322 efl_gfx_hint_weight_set(box2, 1.0, 1.0); 322 efl_gfx_hint_weight_set(box2, 1.0, 1.0);
323 efl_content_set(win, box2);
324 efl_key_data_set(win, "rdg", box2); 323 efl_key_data_set(win, "rdg", box2);
325 efl_pack(box, box2); 324 efl_pack(box, box2);
326 325