seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=2f51a93795d1dc886864863de269ba90cdfedebe

commit 2f51a93795d1dc886864863de269ba90cdfedebe
Author: Daniel Juyung Seo <[email protected]>
Date:   Tue Feb 18 03:49:19 2014 +0900

    test_list: Disabled 'focus on selection' as it is turned off by default.
    
    - This can be enabled by checking the check buttons.
    - Switches 'focus on selection' and 'focus animation' check buttons.
---
 src/bin/test_list.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/bin/test_list.c b/src/bin/test_list.c
index e8b2de6..5c45219 100644
--- a/src/bin/test_list.c
+++ b/src/bin/test_list.c
@@ -1316,23 +1316,23 @@ void test_list_focus(const char *name, const char 
*title, Eina_Bool horiz)
    evas_object_show(bx);
 
    chk = elm_check_add(win);
-   elm_object_text_set(chk, "Focus on selection");
+   elm_object_text_set(chk, "Focus Animation");
+   elm_check_state_set(chk, EINA_TRUE);
    evas_object_size_hint_weight_set(chk, EVAS_HINT_EXPAND, 0.0);
-   evas_object_smart_callback_add(chk, "changed", 
test_list8_focus_check_changed, li);
+   evas_object_smart_callback_add(chk, "changed",
+                                  test_list8_focus_animate_check_changed, win);
    elm_box_pack_end(bx, chk);
    evas_object_show(chk);
 
-   test_list8_focus_on_selection_set(li, chk, EINA_TRUE);
-
    chk = elm_check_add(win);
-   elm_object_text_set(chk, "Focus Animation");
-   elm_check_state_set(chk, EINA_TRUE);
+   elm_object_text_set(chk, "Focus on selection");
    evas_object_size_hint_weight_set(chk, EVAS_HINT_EXPAND, 0.0);
-   evas_object_smart_callback_add(chk, "changed",
-                                  test_list8_focus_animate_check_changed, win);
+   evas_object_smart_callback_add(chk, "changed", 
test_list8_focus_check_changed, li);
    elm_box_pack_end(bx, chk);
    evas_object_show(chk);
 
+   test_list8_focus_on_selection_set(li, chk, EINA_FALSE);
+
    elm_box_pack_end(bxx, bx);
 
    for (idx = 0; _list_focus_combo[idx] >= 0; idx++)

-- 


Reply via email to