summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2015-12-08 10:41:36 +0100
committerLukasz Stanislawski <l.stanislaws@samsung.com>2015-12-08 10:41:36 +0100
commit6936636edf0efcd77516066ed161ee1e7fc12b35 (patch)
tree79f68d679634f68bf4837c33a20210b368f5588c
parent3bed41e7e4a2f12848b24fae18bc50fe486cb2c4 (diff)
slider: minor accessibility events fix
Emit accessibility events if slider value was chagned through API. Moreover emit accessibility event more rarely if value is being changed by the user.
-rw-r--r--src/lib/elm_slider.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c
index 33f2ecc9c..a0a064534 100644
--- a/src/lib/elm_slider.c
+++ b/src/lib/elm_slider.c
@@ -65,6 +65,9 @@ _delay_change(void *data)
65 sd->delay = NULL; 65 sd->delay = NULL;
66 eo_do(data, eo_event_callback_call(ELM_SLIDER_EVENT_DELAY_CHANGED, NULL)); 66 eo_do(data, eo_event_callback_call(ELM_SLIDER_EVENT_DELAY_CHANGED, NULL));
67 67
68 if (_elm_config->atspi_mode)
69 elm_interface_atspi_accessible_value_changed_signal_emit(data);
70
68 return ECORE_CALLBACK_CANCEL; 71 return ECORE_CALLBACK_CANCEL;
69} 72}
70 73
@@ -95,7 +98,6 @@ _val_fetch(Evas_Object *obj, Eina_Bool user_event)
95 if (user_event) 98 if (user_event)
96 { 99 {
97 eo_do(obj, eo_event_callback_call(ELM_SLIDER_EVENT_CHANGED, NULL)); 100 eo_do(obj, eo_event_callback_call(ELM_SLIDER_EVENT_CHANGED, NULL));
98 elm_interface_atspi_accessible_value_changed_signal_emit(obj);
99 ecore_timer_del(sd->delay); 101 ecore_timer_del(sd->delay);
100 sd->delay = ecore_timer_add(SLIDER_DELAY_CHANGED_INTERVAL, _delay_change, obj); 102 sd->delay = ecore_timer_add(SLIDER_DELAY_CHANGED_INTERVAL, _delay_change, obj);
101 } 103 }
@@ -127,6 +129,10 @@ _val_set(Evas_Object *obj)
127 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 129 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
128 edje_object_part_drag_value_set 130 edje_object_part_drag_value_set
129 (wd->resize_obj, "elm.dragable.slider", pos, pos); 131 (wd->resize_obj, "elm.dragable.slider", pos, pos);
132
133 // emit accessiblity event also if value was chagend by API
134 if (_elm_config->atspi_mode)
135 elm_interface_atspi_accessible_value_changed_signal_emit(obj);
130} 136}
131 137
132static void 138static void