test_list.c: fix list focus example to enable the focus highlight and animation for...
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 5 Nov 2013 18:09:54 +0000 (03:09 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 5 Nov 2013 18:09:59 +0000 (03:09 +0900)
legacy/elementary/src/bin/test_list.c

index c1bfe2b..4123779 100644 (file)
@@ -1376,14 +1376,14 @@ void test_list_focus(const char *name, const char *title, Eina_Bool horiz)
    unsigned lhand, rhand, idx;
    char buf[256];
 
-   elm_config_focus_highlight_enabled_set(EINA_TRUE);
-   elm_config_focus_highlight_animate_set(EINA_TRUE);
-
    win = elm_win_util_standard_add(name, title);
    elm_win_autodel_set(win, EINA_TRUE);
    evas_object_resize(win, 320, 300);
    evas_object_show(win);
 
+   elm_win_focus_highlight_enabled_set(win, EINA_TRUE);
+   elm_win_focus_highlight_animate_set(win, EINA_TRUE);
+
    bxx = elm_box_add(win);
    evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    elm_win_resize_object_add(win, bxx);