summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmesh Tanwar <umesh.tanwar@samsung.com>2015-06-25 13:24:21 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-06-25 13:24:21 +0900
commit2113cafeac7b032526ce0df072467259354948bf (patch)
tree0ad117be2220d981810006ed4c1801de0c3b0fdd
parenta5fadcb53791f5b41cafe023080286354d5c41dd (diff)
Genlist: Test case added in Genlist Focus example.
Summary: Added test case to enable/disable mouse wheel. Mouse Wheel is used to scroll the genlist up/down. Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com> Test Plan: elementary_test -> Genlist Focus -> Wheel Disabled Reviewers: raster, Hermet, cedric Subscribers: sachin.dev, singh.amitesh, SanghyeonLee, eagleeye Differential Revision: https://phab.enlightenment.org/D2757
-rw-r--r--src/bin/test_genlist.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 770905b8b..e51968144 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -4273,6 +4273,13 @@ _gl_first_item_focus_on_first_focus_in_cb(void *data EINA_UNUSED, Evas_Object *o
4273{ 4273{
4274 elm_config_first_item_focus_on_first_focusin_set(elm_check_state_get(obj)); 4274 elm_config_first_item_focus_on_first_focusin_set(elm_check_state_get(obj));
4275} 4275}
4276
4277static void
4278_gl_wheel_disabled_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
4279{
4280 elm_scroller_wheel_disabled_set(data, elm_check_state_get(obj));
4281}
4282
4276static Eina_Bool 4283static Eina_Bool
4277_focus_timer_cb(void *data) 4284_focus_timer_cb(void *data)
4278{ 4285{
@@ -4493,6 +4500,14 @@ _test_genlist_focus_option_panel_create(Evas_Object *win, Evas_Object *bx,
4493 elm_box_pack_end(bx_opt, chk); 4500 elm_box_pack_end(bx_opt, chk);
4494 evas_object_show(chk); 4501 evas_object_show(chk);
4495 4502
4503 chk = elm_check_add(bx_opt);
4504 elm_object_text_set(chk, "Wheel Disabled");
4505 elm_check_state_set(chk, elm_scroller_wheel_disabled_get(gl));
4506 evas_object_size_hint_weight_set(chk, EVAS_HINT_EXPAND, 0.0);
4507 evas_object_smart_callback_add(chk, "changed", _gl_wheel_disabled_cb, gl);
4508 elm_box_pack_end(bx_opt, chk);
4509 evas_object_show(chk);
4510
4496 // Focus Autoscroll Mode 4511 // Focus Autoscroll Mode
4497 fr = _focus_autoscroll_mode_frame_create(bx); 4512 fr = _focus_autoscroll_mode_frame_create(bx);
4498 elm_box_pack_end(bx, fr); 4513 elm_box_pack_end(bx, fr);