summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/bin/test_radio.c
diff options
context:
space:
mode:
authorViktor Kojouharov <vkojouharov@gmail.com>2009-08-27 08:09:17 +0000
committerViktor Kojouharov <vkojouharov@gmail.com>2009-08-27 08:09:17 +0000
commitf7a39407b73b2b56b41be82c9d49baab5d7b434c (patch)
treeae5174d47230eba75fe2c4b45fb07aabc449176d /legacy/elementary/src/bin/test_radio.c
parent14287466c9c7a72a90f58d644f5e5b767870e4c7 (diff)
disable states for radio and check widgets
SVN revision: 42028
Diffstat (limited to 'legacy/elementary/src/bin/test_radio.c')
-rw-r--r--legacy/elementary/src/bin/test_radio.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/legacy/elementary/src/bin/test_radio.c b/legacy/elementary/src/bin/test_radio.c
index 9953c84..6dd2a9f 100644
--- a/legacy/elementary/src/bin/test_radio.c
+++ b/legacy/elementary/src/bin/test_radio.c
@@ -55,14 +55,35 @@ test_radio(void *data, Evas_Object *obj, void *event_info)
55 elm_box_pack_end(bx, rd); 55 elm_box_pack_end(bx, rd);
56 evas_object_show(rd); 56 evas_object_show(rd);
57 57
58 rd = elm_radio_add(win);
59 elm_radio_state_value_set(rd, 3);
60 elm_radio_group_add(rd, rdg);
61 elm_radio_label_set(rd, "Disabled");
62 elm_object_disabled_set(rd, 1);
63 elm_box_pack_end(bx, rd);
64 evas_object_show(rd);
65
58 ic = elm_icon_add(win); 66 ic = elm_icon_add(win);
59 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR); 67 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
60 elm_icon_file_set(ic, buf, NULL); 68 elm_icon_file_set(ic, buf, NULL);
61 elm_icon_scale_set(ic, 0, 0); 69 elm_icon_scale_set(ic, 0, 0);
62 rd = elm_radio_add(win); 70 rd = elm_radio_add(win);
63 elm_radio_state_value_set(rd, 3); 71 elm_radio_state_value_set(rd, 4);
72 elm_radio_group_add(rd, rdg);
73 elm_radio_icon_set(rd, ic);
74 elm_box_pack_end(bx, rd);
75 evas_object_show(rd);
76 evas_object_show(ic);
77
78 ic = elm_icon_add(win);
79 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
80 elm_icon_file_set(ic, buf, NULL);
81 elm_icon_scale_set(ic, 0, 0);
82 rd = elm_radio_add(win);
83 elm_radio_state_value_set(rd, 5);
64 elm_radio_group_add(rd, rdg); 84 elm_radio_group_add(rd, rdg);
65 elm_radio_icon_set(rd, ic); 85 elm_radio_icon_set(rd, ic);
86 elm_object_disabled_set(rd, 1);
66 elm_box_pack_end(bx, rd); 87 elm_box_pack_end(bx, rd);
67 evas_object_show(rd); 88 evas_object_show(rd);
68 evas_object_show(ic); 89 evas_object_show(ic);