forked from enlightenment/efl
test_list.c: fix list focus example to enable the focus highlight and animation for the proper window.
This commit is contained in:
parent
c4f8c9d5b7
commit
a5c3b45e84
|
@ -1376,14 +1376,14 @@ void test_list_focus(const char *name, const char *title, Eina_Bool horiz)
|
||||||
unsigned lhand, rhand, idx;
|
unsigned lhand, rhand, idx;
|
||||||
char buf[256];
|
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);
|
win = elm_win_util_standard_add(name, title);
|
||||||
elm_win_autodel_set(win, EINA_TRUE);
|
elm_win_autodel_set(win, EINA_TRUE);
|
||||||
evas_object_resize(win, 320, 300);
|
evas_object_resize(win, 320, 300);
|
||||||
evas_object_show(win);
|
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);
|
bxx = elm_box_add(win);
|
||||||
evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
elm_win_resize_object_add(win, bxx);
|
elm_win_resize_object_add(win, bxx);
|
||||||
|
|
Loading…
Reference in New Issue