summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2015-09-16 10:10:32 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-09-16 10:10:32 +0900
commit1262c24a72a314bc3dd1de014283068cd390e88c (patch)
tree4170a3d1e8bf274488b3ed8d7dbbc5c5437669ef
parent80c8ace84a117821a539f0f8c125c93dcad6ad55 (diff)
slider: slider should be focused, when slider is handled with mouse or touch event.
Summary: slider is not focused after slider is dragged. Test Plan: elementary_test -> slider Reviewers: woohyun, seoz, smohanty, cedric, raster Differential Revision: https://phab.enlightenment.org/D3057
-rw-r--r--src/lib/elm_slider.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c
index bffab0a3d..25cd4a791 100644
--- a/src/lib/elm_slider.c
+++ b/src/lib/elm_slider.c
@@ -240,6 +240,8 @@ _drag_start(void *data,
240 const char *emission EINA_UNUSED, 240 const char *emission EINA_UNUSED,
241 const char *source EINA_UNUSED) 241 const char *source EINA_UNUSED)
242{ 242{
243 if (!elm_widget_focus_get(data))
244 elm_object_focus_set(data, EINA_TRUE);
243 _slider_update(data, EINA_TRUE); 245 _slider_update(data, EINA_TRUE);
244 eo_do(data, eo_event_callback_call(ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL)); 246 eo_do(data, eo_event_callback_call(ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL));
245 elm_widget_scroll_freeze_push(data); 247 elm_widget_scroll_freeze_push(data);
@@ -644,6 +646,8 @@ _spacer_down_cb(void *data,
644 edje_object_part_drag_value_set 646 edje_object_part_drag_value_set
645 (wd->resize_obj, "elm.dragable.slider", 647 (wd->resize_obj, "elm.dragable.slider",
646 button_x, button_y); 648 button_x, button_y);
649 if (!elm_widget_focus_get(data))
650 elm_object_focus_set(data, EINA_TRUE);
647 _slider_update(data, EINA_TRUE); 651 _slider_update(data, EINA_TRUE);
648 eo_do(data, eo_event_callback_call(ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL)); 652 eo_do(data, eo_event_callback_call(ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL));
649 elm_layout_signal_emit(data, "elm,state,indicator,show", "elm"); 653 elm_layout_signal_emit(data, "elm,state,indicator,show", "elm");