From: minkyu kim Date: Tue, 2 Apr 2013 02:13:36 +0000 (+0900) Subject: modify to calculate longpress time X-Git-Tag: accepted/tizen_2.1/20130425.033138~554^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f75cceca0ca17cc831a5c4bb8430dba408cfd005;p=platform%2Fframework%2Fnative%2Fuifw.git modify to calculate longpress time Change-Id: I18bcc855ea71015fdcf68849ce8a8103206a97ba --- 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;