summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_part_bg.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-08-21 14:27:53 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-21 21:23:13 +0200
commit0498a4bfc84f3cf1521467e8abe77f9e30136c7e (patch)
tree8397f3e8d1e404e3ca3e9313b7a1c35f38cf6e45 /src/bin/elementary/test_part_bg.c
parent2be2c3c6c391b335a93c856df04fad1950639da3 (diff)
elm_test: fix background radio usage
radio group apis need to use the radio group Differential Revision: https://phab.enlightenment.org/D9689
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_part_bg.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/elementary/test_part_bg.c b/src/bin/elementary/test_part_bg.c
index d3d6ea3..c192cde 100644
--- a/src/bin/elementary/test_part_bg.c
+++ b/src/bin/elementary/test_part_bg.c
@@ -57,23 +57,23 @@ static Efl_Ui_Radio_Group *
57_create_box_contents(Evas_Object *box) 57_create_box_contents(Evas_Object *box)
58{ 58{
59 Evas_Object *hbox; 59 Evas_Object *hbox;
60 Evas_Object *radio_group, *radio; 60 Evas_Object *radio;
61 Evas_Object *content; 61 Evas_Object *content;
62 Efl_Ui_Radio_Group *group; 62 Efl_Ui_Radio_Group *radio_group;
63 char buf[PATH_MAX]; 63 char buf[PATH_MAX];
64 unsigned int i; 64 unsigned int i;
65 65
66 group = efl_new(EFL_UI_RADIO_GROUP_IMPL_CLASS, NULL); 66 radio_group = efl_new(EFL_UI_RADIO_GROUP_IMPL_CLASS, NULL);
67 67
68 hbox = efl_add(EFL_UI_BOX_CLASS, box, 68 hbox = efl_add(EFL_UI_BOX_CLASS, box,
69 efl_ui_layout_orientation_set(efl_added, EFL_UI_LAYOUT_ORIENTATION_HORIZONTAL), 69 efl_ui_layout_orientation_set(efl_added, EFL_UI_LAYOUT_ORIENTATION_HORIZONTAL),
70 efl_gfx_hint_weight_set(efl_added, 1, 1), 70 efl_gfx_hint_weight_set(efl_added, 1, 1),
71 efl_pack_end(box, efl_added)); 71 efl_pack_end(box, efl_added));
72 72
73 radio_group = radio = efl_add(EFL_UI_RADIO_CLASS, hbox); 73 radio = efl_add(EFL_UI_RADIO_CLASS, hbox);
74 efl_gfx_hint_weight_set(radio, 0, 0); 74 efl_gfx_hint_weight_set(radio, 0, 0);
75 efl_ui_radio_state_value_set(radio, 0); 75 efl_ui_radio_state_value_set(radio, 0);
76 efl_ui_radio_group_register(group, radio); 76 efl_ui_radio_group_register(radio_group, radio);
77 efl_pack_end(hbox, radio); 77 efl_pack_end(hbox, radio);
78 78
79 content = efl_add(EFL_UI_BOX_CLASS, hbox, 79 content = efl_add(EFL_UI_BOX_CLASS, hbox,
@@ -96,7 +96,7 @@ _create_box_contents(Evas_Object *box)
96 radio = efl_add(EFL_UI_RADIO_CLASS, hbox); 96 radio = efl_add(EFL_UI_RADIO_CLASS, hbox);
97 efl_ui_radio_state_value_set(radio, i + 1); 97 efl_ui_radio_state_value_set(radio, i + 1);
98 efl_gfx_hint_weight_set(radio, 0, 0); 98 efl_gfx_hint_weight_set(radio, 0, 0);
99 efl_ui_radio_group_register(group, radio); 99 efl_ui_radio_group_register(radio_group, radio);
100 efl_pack_end(hbox, radio); 100 efl_pack_end(hbox, radio);
101 101
102 content = efl_add(content_class[i], hbox, 102 content = efl_add(content_class[i], hbox,
@@ -114,7 +114,7 @@ _create_box_contents(Evas_Object *box)
114 evas_object_data_set(radio, "data", content); 114 evas_object_data_set(radio, "data", content);
115 } 115 }
116 116
117 efl_ui_radio_group_selected_value_set(group, 0); 117 efl_ui_radio_group_selected_value_set(radio_group, 0);
118 118
119 return radio_group; 119 return radio_group;
120} 120}