summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-07-31 10:36:37 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-31 12:44:31 +0200
commit359a118cdaa9d044a2381a829c9bcae1be177b6c (patch)
treec3d60543af76577303b1c401733d97e38f94b2ce /src/lib
parentb218dcbc3f874672fde32cbfca414c39598a8689 (diff)
Efl.Ui.Spin: Remove mouse wheel interaction
This widget is now meant as a base class for other widgets, with very limited user interaction. Efl.Ui.Spin_Button already takes care of mouse wheel events. Ref T7897 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9453
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/efl_ui_spin.c21
-rw-r--r--src/lib/elementary/efl_ui_spin.eo1
2 files changed, 0 insertions, 22 deletions
diff --git a/src/lib/elementary/efl_ui_spin.c b/src/lib/elementary/efl_ui_spin.c
index 1776fe33f3..0e50457f33 100644
--- a/src/lib/elementary/efl_ui_spin.c
+++ b/src/lib/elementary/efl_ui_spin.c
@@ -29,27 +29,6 @@ _label_write(Evas_Object *obj, Efl_Ui_Spin_Data *sd)
29 eina_strbuf_free(strbuf); 29 eina_strbuf_free(strbuf);
30} 30}
31 31
32EOLIAN static Eina_Bool
33_efl_ui_spin_efl_ui_widget_widget_input_event_handler(Eo *obj, Efl_Ui_Spin_Data *sd, const Efl_Event *eo_event, Evas_Object *src EINA_UNUSED)
34{
35 Eo *ev = eo_event->info;
36
37 if (efl_input_processed_get(ev)) return EINA_FALSE;
38
39 if (eo_event->desc == EFL_EVENT_POINTER_WHEEL)
40 {
41 if (efl_input_pointer_wheel_delta_get(ev) < 0)
42 efl_ui_range_value_set(obj, (efl_ui_range_value_get(obj) + sd->step));
43 else
44 efl_ui_range_value_set(obj, (efl_ui_range_value_get(obj) - sd->step));
45 }
46 else
47 return EINA_FALSE;
48
49 efl_input_processed_set(ev, EINA_TRUE);
50 return EINA_TRUE;
51}
52
53EOLIAN static Eo * 32EOLIAN static Eo *
54_efl_ui_spin_efl_object_constructor(Eo *obj, Efl_Ui_Spin_Data *sd) 33_efl_ui_spin_efl_object_constructor(Eo *obj, Efl_Ui_Spin_Data *sd)
55{ 34{
diff --git a/src/lib/elementary/efl_ui_spin.eo b/src/lib/elementary/efl_ui_spin.eo
index 55b1e45572..717c569e0d 100644
--- a/src/lib/elementary/efl_ui_spin.eo
+++ b/src/lib/elementary/efl_ui_spin.eo
@@ -9,7 +9,6 @@ class @beta Efl.Ui.Spin extends Efl.Ui.Layout_Base implements Efl.Ui.Range_Inter
9 implements { 9 implements {
10 Efl.Object.constructor; 10 Efl.Object.constructor;
11 Efl.Object.destructor; 11 Efl.Object.destructor;
12 Efl.Ui.Widget.widget_input_event_handler;
13 Efl.Ui.Range_Display.range_limits { get; set; } 12 Efl.Ui.Range_Display.range_limits { get; set; }
14 Efl.Ui.Range_Interactive.range_step { get; set; } 13 Efl.Ui.Range_Interactive.range_step { get; set; }
15 Efl.Ui.Range_Display.range_value { get; set; } 14 Efl.Ui.Range_Display.range_value { get; set; }