summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2011-10-24 23:44:21 +0000
committerBruno Dilly <bdilly@profusion.mobi>2011-10-24 23:44:21 +0000
commit5c28065815a935445f654aeebd8cc16ff3de580b (patch)
tree10432557b27ba9c9e412f5483e8d9a916405b840 /legacy
parentcee4098e1f9033f98f2202b3861dbdb702333030 (diff)
Elementary: remove some more deprecated functions usage
Missed on previous commits SVN revision: 64366
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/doc/widgets/widget_preview_toggle.c4
-rw-r--r--legacy/elementary/src/bin/test_focus.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/legacy/elementary/doc/widgets/widget_preview_toggle.c b/legacy/elementary/doc/widgets/widget_preview_toggle.c
index a26930a770..b6b85ad3cd 100644
--- a/legacy/elementary/doc/widgets/widget_preview_toggle.c
+++ b/legacy/elementary/doc/widgets/widget_preview_toggle.c
@@ -1,11 +1,11 @@
1#include "widget_preview_tmpl_head.c" 1#include "widget_preview_tmpl_head.c"
2 2
3Evas_Object *o = elm_toggle_add(win); 3Evas_Object *o = elm_check_add(win);
4elm_object_style_set(o, "toggle");
4evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 5evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
5elm_win_resize_object_add(win, o); 6elm_win_resize_object_add(win, o);
6evas_object_show(o); 7evas_object_show(o);
7 8
8elm_object_text_set(o, "toggle"); 9elm_object_text_set(o, "toggle");
9elm_toggle_states_labels_set(o, "on", "off");
10 10
11#include "widget_preview_tmpl_foot.c" 11#include "widget_preview_tmpl_foot.c"
diff --git a/legacy/elementary/src/bin/test_focus.c b/legacy/elementary/src/bin/test_focus.c
index f4f52f81c8..a8a14b957b 100644
--- a/legacy/elementary/src/bin/test_focus.c
+++ b/legacy/elementary/src/bin/test_focus.c
@@ -104,7 +104,8 @@ test_focus(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
104 { 104 {
105 Evas_Object *tg = elm_check_add(win); 105 Evas_Object *tg = elm_check_add(win);
106 elm_object_style_set(tg, "toggle"); 106 elm_object_style_set(tg, "toggle");
107 elm_check_states_labels_set(tg, "Yes", "No"); 107 elm_object_text_part_set(tg, "on", "Yes");
108 elm_object_text_part_set(tg, "off", "No");
108 elm_box_pack_end(bx, tg); 109 elm_box_pack_end(bx, tg);
109 my_show(tg); 110 my_show(tg);
110 } 111 }