summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2020-03-12 09:09:34 -0400
committerMike Blumenkrantz <zmike@samsung.com>2020-03-12 09:09:35 -0400
commitb319f15c99fdb9947d73b5abfb04a0fa155dd367 (patch)
tree35985fefca718186ab0703129ceb1e3d346ca84a
parentf257401a4f7a3c6ee922bbf7cc311793b5345b1d (diff)
efl_gesture_manager: Fix incorrect override system config value.
Summary: The glayer_tap_finger_size can get diffrent value on each profile. Need to get system config value and will set it for gesture manager. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11485
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_manager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.c b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
index a05794fd91..48f515471c 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
@@ -3,7 +3,6 @@
3#include "efl_canvas_gesture_private.h" 3#include "efl_canvas_gesture_private.h"
4 4
5#define MY_CLASS EFL_CANVAS_GESTURE_MANAGER_CLASS 5#define MY_CLASS EFL_CANVAS_GESTURE_MANAGER_CLASS
6#define EFL_GESTURE_RECOGNIZER_TYPE_TAP_FINGER_SIZE 10
7 6
8typedef struct _Object_Gesture 7typedef struct _Object_Gesture
9{ 8{
@@ -150,7 +149,6 @@ _efl_canvas_gesture_manager_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_M
150 149
151 /* this needs to always be present */ 150 /* this needs to always be present */
152 config = efl_provider_find(efl_main_loop_get(), EFL_CONFIG_INTERFACE); 151 config = efl_provider_find(efl_main_loop_get(), EFL_CONFIG_INTERFACE);
153 efl_config_int_set(config, "glayer_tap_finger_size", EFL_GESTURE_RECOGNIZER_TYPE_TAP_FINGER_SIZE);
154 efl_event_callback_add(config, EFL_CONFIG_EVENT_CONFIG_CHANGED, _gesture_manager_config_changed, pd); 152 efl_event_callback_add(config, EFL_CONFIG_EVENT_CONFIG_CHANGED, _gesture_manager_config_changed, pd);
155 153
156 //Register all types of recognizers at very first time. 154 //Register all types of recognizers at very first time.
@@ -162,7 +160,7 @@ _efl_canvas_gesture_manager_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_M
162 efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_FLICK_CLASS, obj)); 160 efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_FLICK_CLASS, obj));
163 efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_ROTATE_CLASS, obj)); 161 efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_ROTATE_CLASS, obj));
164 efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_ZOOM_CLASS, obj)); 162 efl_gesture_manager_recognizer_register(obj, efl_add(EFL_CANVAS_GESTURE_RECOGNIZER_ZOOM_CLASS, obj));
165 _update_finger_sizes(pd, EFL_GESTURE_RECOGNIZER_TYPE_TAP_FINGER_SIZE); 163 _update_finger_sizes(pd, efl_config_int_get(config, "glayer_tap_finger_size"));
166 164
167 return obj; 165 return obj;
168} 166}