Revert "[4.0] Fix to get the full input text in RetrieveSurrounding" 57/155657/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:09:25 +0000 (11:09 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:09:32 +0000 (11:09 +0900)
This reverts commit 5a86921c3fbd5a36aa8ed2f8b7b0cb43223f2bb2.

Change-Id: I33dc429e97ad11731c27a5e55bb0e30d92cedfff

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;