Revert "[4.0] Fix to get the full input text in RetrieveSurrounding" 72/154772/1
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Wed, 11 Oct 2017 08:45:52 +0000 (17:45 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Wed, 11 Oct 2017 08:46:05 +0000 (17:46 +0900)
This reverts commit 1335197937e96d6b0146ed8c2864128934ae4ca9.

Change-Id: I0720813c47915166c7ce3e6e5dae341641c8bb04

adaptors/ecore/wayland/imf-manager-impl-ecore-wl.cpp

index 69e5e41..f171016 100644 (file)
@@ -589,20 +589,16 @@ Eina_Bool ImfManager::RetrieveSurrounding( void* data, Ecore_IMF_Context* imfCon
 
   Dali::ImfManager::ImfEventData imfData( Dali::ImfManager::GETSURROUNDING, std::string(), 0, 0 );
   Dali::ImfManager handle( this );
-  Dali::ImfManager::ImfCallbackData callbackData = mEventSignal.Emit( handle, imfData );
+  mEventSignal.Emit( handle, imfData );
 
-  if( callbackData.update )
+  if( text )
   {
-    if( text )
-    {
-      *text = strdup( callbackData.currentText.c_str() );
-    }
+    *text = strdup( mSurroundingText.c_str() );
+  }
 
-    if( cursorPosition )
-    {
-      mIMFCursorPosition = static_cast<int>( callbackData.cursorPosition );
-      *cursorPosition = mIMFCursorPosition;
-    }
+  if( cursorPosition )
+  {
+    *cursorPosition = mIMFCursorPosition;
   }
 
   return EINA_TRUE;