aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_gengrid.c
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2014-04-27 04:15:26 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-04-27 04:15:26 +0900
commit8e0ffb8332c2f9fac2b3e2b30c24af1b98a36d1e (patch)
treead90df1ed6619a266a83186d0d329b533cdfefd3 /legacy/elementary/src/bin/test_gengrid.c
parentgengrid: ignore key events if item reorder is going on. (diff)
downloadefl-8e0ffb8332c2f9fac2b3e2b30c24af1b98a36d1e.tar.gz
config: Added two APIs to enable/disable focus auto scroll bring in feature.
Summary: Summary: - APIs - elm_config_focus_auto_scroll_bring_in_enabled_set - elm_config_focus_auto_scroll_bring_in_enabled_get - list/genlist/toolbar/gengrid: Using this feature for scrolling for focus movement. - Added test case in "List Focus", "Genlist Focus", "Toolbar Focus" and "Gengrid Focus" @feature Test Plan: elementary_test->"List Focus", "Genlist Focus", "Toolbar Focus" & "Gengrid Focus". Reviewers: raster, seoz CC: seoz Differential Revision: https://phab.enlightenment.org/D799
Diffstat (limited to 'legacy/elementary/src/bin/test_gengrid.c')
-rw-r--r--legacy/elementary/src/bin/test_gengrid.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index cac0973b5f..9b49762fe5 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -1363,6 +1363,14 @@ _test_gengrid_focus_focus_animate_check_changed(void *data,
}
static void
+_test_gengrid_focus_bring_in_changed(void *data EINA_UNUSED,
+ Evas_Object *obj,
+ void *event_info EINA_UNUSED)
+{
+ elm_config_focus_auto_scroll_bring_in_enabled_set(elm_check_state_get(obj));
+}
+
+static void
_grid_reorder_mode(void *data, Evas_Object *obj,
void *event_info EINA_UNUSED)
{
@@ -1486,6 +1494,15 @@ test_gengrid_focus(void *data EINA_UNUSED,
elm_box_pack_end(bx_opt, ck);
evas_object_show(ck);
+ ck = elm_check_add(bx_opt);
+ elm_object_text_set(ck, "Focus Auto scroll bring in enable");
+ evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, 0.0);
+ evas_object_smart_callback_add(ck, "changed", _test_gengrid_focus_bring_in_changed,
+ NULL);
+ elm_check_state_set(ck, elm_config_focus_auto_scroll_bring_in_enabled_get());
+ elm_box_pack_end(bx_opt, ck);
+ evas_object_show(ck);
+
//Focus movement policy
fr = elm_frame_add(bx);
elm_object_text_set(fr, "Focus Movement Policy");