From f75cceca0ca17cc831a5c4bb8430dba408cfd005 Mon Sep 17 00:00:00 2001 From: minkyu kim Date: Tue, 2 Apr 2013 11:13:36 +0900 Subject: [PATCH] modify to calculate longpress time Change-Id: I18bcc855ea71015fdcf68849ce8a8103206a97ba --- src/ui/FUi_ControlManager.cpp | 2 +- src/ui/FUi_TouchLongPressGestureDetector.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/FUi_ControlManager.cpp b/src/ui/FUi_ControlManager.cpp index 3744d22..d4be148 100644 --- a/src/ui/FUi_ControlManager.cpp +++ b/src/ui/FUi_ControlManager.cpp @@ -1452,7 +1452,7 @@ _ControlManager::OnSettingChanged(Tizen::Base::String& key) IEnumeratorT<_TouchGestureDetector*>* pEnumerator = __pGestureList->GetEnumeratorN(); SysTryReturnVoidResult(NID_UI, pEnumerator, E_SYSTEM, "[E_SYSTEM] System error occurred.") - int duration = static_cast(elm_config_longpress_timeout_get()); + int duration = static_cast(elm_config_longpress_timeout_get() * 1000); if (duration == 0) { duration = 500; diff --git a/src/ui/FUi_TouchLongPressGestureDetector.cpp b/src/ui/FUi_TouchLongPressGestureDetector.cpp index 9723146..fbe9b34 100644 --- a/src/ui/FUi_TouchLongPressGestureDetector.cpp +++ b/src/ui/FUi_TouchLongPressGestureDetector.cpp @@ -67,7 +67,7 @@ _TouchLongPressGestureDetector::_TouchLongPressGestureDetector(void) __pLongPressInfoList = new (std::nothrow) ArrayListT<_LongPressInfo*>; SysTryReturnVoidResult(NID_UI, __pLongPressInfoList, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - int __duration = static_cast(elm_config_longpress_timeout_get()); + int __duration = static_cast(elm_config_longpress_timeout_get() * 1000); if (__duration == 0) { __duration = 500; -- 2.7.4