summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_spin.c
diff options
context:
space:
mode:
authorWoochan Lee <wc0917.lee@samsung.com>2017-11-28 20:03:06 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-11-28 20:03:06 +0900
commite8238522be7a096aa1b2287ef343564a425b67cb (patch)
treea0f190e0e02b02508612cdc63a2dedd6e5e8734e /src/bin/elementary/test_ui_spin.c
parent434be7dbfa708247baec25ddc300201185c2110f (diff)
efl_ui_spin: Support value change using mouse wheel.
Summary: Enable value change using wheel. (Up, Down key value change will be supported after D4933 dicussing.) Test Plan: elementary_test efl_ui_spin test sample. Reviewers: Jaehyun_Cho, jpeg, woohyun Reviewed By: Jaehyun_Cho Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5546
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_ui_spin.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bin/elementary/test_ui_spin.c b/src/bin/elementary/test_ui_spin.c
index be41b75f5f..ba0a166adf 100644
--- a/src/bin/elementary/test_ui_spin.c
+++ b/src/bin/elementary/test_ui_spin.c
@@ -22,15 +22,13 @@ _spin_max_reached_cb(void *data EINA_UNUSED, const Efl_Event *ev)
22static void 22static void
23_inc_clicked(void *data, const Efl_Event *ev EINA_UNUSED) 23_inc_clicked(void *data, const Efl_Event *ev EINA_UNUSED)
24{ 24{
25 int val = (int)efl_ui_range_value_get(data); 25 efl_ui_range_value_set(data, (efl_ui_range_value_get(data) + efl_ui_range_step_get(data)));
26 efl_ui_range_value_set(data, ++val);
27} 26}
28 27
29static void 28static void
30_dec_clicked(void *data, const Efl_Event *ev EINA_UNUSED) 29_dec_clicked(void *data, const Efl_Event *ev EINA_UNUSED)
31{ 30{
32 int val = (int)efl_ui_range_value_get(data); 31 efl_ui_range_value_set(data, (efl_ui_range_value_get(data) - efl_ui_range_step_get(data)));
33 efl_ui_range_value_set(data, --val);
34} 32}
35 33
36void 34void