From a9dd7b71c6900d800ef66f6cf6607550a6bf88f2 Mon Sep 17 00:00:00 2001 From: seoz Date: Wed, 20 Apr 2011 17:20:15 +0000 Subject: [PATCH] Elementary test_actionslider.c: Fixed wrong variable names. Magnet slider(ms) is an old name of actionslider. So I changed ms to as. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@58764 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/test_actionslider.c | 130 ++++++++++++++++++++++---------------------- 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/src/bin/test_actionslider.c b/src/bin/test_actionslider.c index 973f532..aa5ad45 100644 --- a/src/bin/test_actionslider.c +++ b/src/bin/test_actionslider.c @@ -31,7 +31,7 @@ _magnet_enable_disable_cb(void *data __UNUSED__, Evas_Object *obj, void *event_i void test_actionslider(void *data __UNUSED__, Evas_Object * obj __UNUSED__, void *event_info __UNUSED__) { - Evas_Object *win, *bg, *bx, *ms; + Evas_Object *win, *bg, *bx, *as; win = elm_win_add(NULL, "actionslider", ELM_WIN_BASIC); elm_win_title_set(win, "Actionslider"); @@ -47,83 +47,83 @@ test_actionslider(void *data __UNUSED__, Evas_Object * obj __UNUSED__, void *eve elm_win_resize_object_add(win, bx); evas_object_show(bx); - ms = elm_actionslider_add(win); - evas_object_size_hint_weight_set(ms, EVAS_HINT_EXPAND, 0); - evas_object_size_hint_align_set(ms, EVAS_HINT_FILL, 0); - elm_actionslider_indicator_pos_set(ms, ELM_ACTIONSLIDER_RIGHT); - elm_actionslider_magnet_pos_set(ms, ELM_ACTIONSLIDER_RIGHT); - elm_actionslider_labels_set(ms, "Snooze", NULL, "Stop"); - elm_actionslider_enabled_pos_set(ms, ELM_ACTIONSLIDER_LEFT | + as = elm_actionslider_add(win); + evas_object_size_hint_weight_set(as, EVAS_HINT_EXPAND, 0); + evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0); + elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_RIGHT); + elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_RIGHT); + elm_actionslider_labels_set(as, "Snooze", NULL, "Stop"); + elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT); - evas_object_smart_callback_add(ms, "pos_changed", + evas_object_smart_callback_add(as, "pos_changed", _position_change_magnetic_cb, NULL); - evas_object_smart_callback_add(ms, "selected", _pos_selected_cb, NULL); - evas_object_show(ms); - elm_box_pack_end(bx, ms); + evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL); + evas_object_show(as); + elm_box_pack_end(bx, as); - ms = elm_actionslider_add(win); - evas_object_size_hint_weight_set(ms, EVAS_HINT_EXPAND, 0); - evas_object_size_hint_align_set(ms, EVAS_HINT_FILL, 0); - elm_actionslider_indicator_pos_set(ms, ELM_ACTIONSLIDER_CENTER); - elm_actionslider_magnet_pos_set(ms, ELM_ACTIONSLIDER_CENTER); - elm_actionslider_labels_set(ms, "Snooze", NULL, "Stop"); - elm_actionslider_enabled_pos_set(ms, ELM_ACTIONSLIDER_LEFT | + as = elm_actionslider_add(win); + evas_object_size_hint_weight_set(as, EVAS_HINT_EXPAND, 0); + evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0); + elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_CENTER); + elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_CENTER); + elm_actionslider_labels_set(as, "Snooze", NULL, "Stop"); + elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT); - evas_object_smart_callback_add(ms, "selected", _pos_selected_cb, NULL); - evas_object_show(ms); - elm_box_pack_end(bx, ms); + evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL); + evas_object_show(as); + elm_box_pack_end(bx, as); - ms = elm_actionslider_add(win); - elm_object_style_set(ms, "bar"); - evas_object_size_hint_weight_set(ms, EVAS_HINT_EXPAND, 0); - evas_object_size_hint_align_set(ms, EVAS_HINT_FILL, 0); - elm_actionslider_indicator_pos_set(ms, ELM_ACTIONSLIDER_LEFT); - elm_actionslider_magnet_pos_set(ms, ELM_ACTIONSLIDER_CENTER| + as = elm_actionslider_add(win); + elm_object_style_set(as, "bar"); + evas_object_size_hint_weight_set(as, EVAS_HINT_EXPAND, 0); + evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0); + elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_LEFT); + elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_CENTER| ELM_ACTIONSLIDER_RIGHT); - elm_actionslider_enabled_pos_set(ms, ELM_ACTIONSLIDER_CENTER | + elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_CENTER | ELM_ACTIONSLIDER_RIGHT); - elm_actionslider_labels_set(ms, NULL, "Accept", "Reject"); - evas_object_smart_callback_add(ms, "selected", _pos_selected_cb, NULL); - evas_object_show(ms); - elm_box_pack_end(bx, ms); + elm_actionslider_labels_set(as, NULL, "Accept", "Reject"); + evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL); + evas_object_show(as); + elm_box_pack_end(bx, as); - ms = elm_actionslider_add(win); - elm_object_style_set(ms, "bar"); - evas_object_size_hint_weight_set(ms, EVAS_HINT_EXPAND, 0); - evas_object_size_hint_align_set(ms, EVAS_HINT_FILL, 0); - elm_actionslider_indicator_pos_set(ms, ELM_ACTIONSLIDER_LEFT); - elm_actionslider_magnet_pos_set(ms, ELM_ACTIONSLIDER_LEFT); - elm_actionslider_labels_set(ms, NULL, "Accept", "Reject"); - elm_actionslider_indicator_label_set(ms, "Go"); - evas_object_smart_callback_add(ms, "pos_changed", + as = elm_actionslider_add(win); + elm_object_style_set(as, "bar"); + evas_object_size_hint_weight_set(as, EVAS_HINT_EXPAND, 0); + evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0); + elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_LEFT); + elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_LEFT); + elm_actionslider_labels_set(as, NULL, "Accept", "Reject"); + elm_actionslider_indicator_label_set(as, "Go"); + evas_object_smart_callback_add(as, "pos_changed", _position_change_magnetic_cb, NULL); - evas_object_smart_callback_add(ms, "selected", _pos_selected_cb, NULL); - evas_object_show(ms); - elm_box_pack_end(bx, ms); + evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL); + evas_object_show(as); + elm_box_pack_end(bx, as); - ms = elm_actionslider_add(win); - evas_object_size_hint_weight_set(ms, EVAS_HINT_EXPAND, 0); - evas_object_size_hint_align_set(ms, EVAS_HINT_FILL, 0); - elm_actionslider_indicator_pos_set(ms, ELM_ACTIONSLIDER_LEFT); - elm_actionslider_magnet_pos_set(ms, ELM_ACTIONSLIDER_ALL); - elm_actionslider_labels_set(ms, "Left", "Center", "Right"); - elm_actionslider_indicator_label_set(ms, "Go"); - evas_object_smart_callback_add(ms, "selected", _pos_selected_cb, NULL); - evas_object_show(ms); - elm_box_pack_end(bx, ms); + as = elm_actionslider_add(win); + evas_object_size_hint_weight_set(as, EVAS_HINT_EXPAND, 0); + evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0); + elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_LEFT); + elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_ALL); + elm_actionslider_labels_set(as, "Left", "Center", "Right"); + elm_actionslider_indicator_label_set(as, "Go"); + evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL); + evas_object_show(as); + elm_box_pack_end(bx, as); - ms = elm_actionslider_add(win); - evas_object_size_hint_weight_set(ms, EVAS_HINT_EXPAND, 0); - evas_object_size_hint_align_set(ms, EVAS_HINT_FILL, 0); - elm_actionslider_indicator_pos_set(ms, ELM_ACTIONSLIDER_CENTER); - elm_actionslider_magnet_pos_set(ms, ELM_ACTIONSLIDER_CENTER); - elm_actionslider_labels_set(ms, "Enable", "Magnet", "Disable"); - evas_object_smart_callback_add(ms, "pos_changed", + as = elm_actionslider_add(win); + evas_object_size_hint_weight_set(as, EVAS_HINT_EXPAND, 0); + evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0); + elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_CENTER); + elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_CENTER); + elm_actionslider_labels_set(as, "Enable", "Magnet", "Disable"); + evas_object_smart_callback_add(as, "pos_changed", _magnet_enable_disable_cb, NULL); - evas_object_smart_callback_add(ms, "selected", _pos_selected_cb, NULL); - evas_object_show(ms); - elm_box_pack_end(bx, ms); + evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL); + evas_object_show(as); + elm_box_pack_end(bx, as); evas_object_resize(win, 320, 400); evas_object_show(win); -- 2.7.4