aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2019-01-04 08:03:52 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-30 13:32:04 +0100
commitfe29a7a06db2935d006643429c3b204afcdad1af (patch)
treec5bcd4d792c0cefc728f2dc85e73dfc82a15be6f
parentefl.text_markup: move cursor-related methods to efl.text_markup_interactive (diff)
downloadefl-fe29a7a06db2935d006643429c3b204afcdad1af.tar.gz
efl_ui_win: Load config values into gesture manager.
https://phab.enlightenment.org/T7544 The other config values will be added Later. Differential Revision: https://phab.enlightenment.org/D7540
-rw-r--r--src/lib/elementary/efl_ui_win.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index d66db964dd..eb5f7e0c42 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -4963,6 +4963,24 @@ _win_finalize_job_cb(void *data, const Eina_Value value)
return value;
}
+static void
+_gesture_manager_config_load(Eo *obj)
+{
+ Eina_Value val;
+ Efl_Canvas_Gesture_Manager *gm = efl_provider_find(obj, EFL_CANVAS_GESTURE_MANAGER_CLASS);
+
+ eina_value_setup(&val, EINA_VALUE_TYPE_DOUBLE);
+ eina_value_set(&val, _elm_config->glayer_long_tap_start_timeout);
+ efl_gesture_manager_config_set(gm, "glayer_long_tap_start_timeout", &val);
+
+ eina_value_set(&val, _elm_config->glayer_double_tap_timeout);
+ efl_gesture_manager_config_set(gm, "glayer_double_tap_timeout", &val);
+
+ eina_value_setup(&val, EINA_VALUE_TYPE_INT);
+ eina_value_set(&val, _elm_config->glayer_tap_finger_size);
+ efl_gesture_manager_config_set(gm, "glayer_tap_finger_size", &val);
+}
+
static Eo *
_elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Efl_Ui_Win_Type type)
{
@@ -5684,6 +5702,9 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Efl_U
}
}
+ // Load the config values into gesutre manager.
+ _gesture_manager_config_load(obj);
+
return obj;
}