summaryrefslogtreecommitdiff
path: root/src/bin/elementary
diff options
context:
space:
mode:
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