Revert "[4.0] Ubuntu Build Error fix" 53/155653/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:05:15 +0000 (11:05 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:06:55 +0000 (11:06 +0900)
This reverts commit 96ee12427446a75796a61d642415df18f6e4f616.

Change-Id: Ib532fcd47b1eb35ab84dedae0e12cadb8d19e844

adaptors/integration-api/x11/imf-manager-impl.h
adaptors/x11/imf-manager-impl-x.cpp

index f8d456b..f069d42 100755 (executable)
@@ -72,7 +72,7 @@ public:
    * Constructor
    * @param[in] ecoreXwin, The window is created by application.
    */
-  ImfManager( Ecore_X_Window ecoreXwin );
+  ImfManager( Ecore_X_Window* ecoreXwin );
 
   /**
    * Connect Callbacks required for IMF.
@@ -270,7 +270,7 @@ private:
    * Context created the first time and kept until deleted.
    * @param[in] ecoreXwin, The window is created by application.
    */
-  void CreateContext( Ecore_X_Window ecoreXwin );
+  void CreateContext( Ecore_X_Window* ecoreXwin );
 
   /**
    * @copydoc Dali::ImfManager::DeleteContext()
@@ -284,7 +284,7 @@ private:
 
 private:
   Ecore_IMF_Context* mIMFContext;
-  Ecore_X_Window mEcoreXWin;
+  Ecore_X_Window* mEcoreXWin;
   int mIMFCursorPosition;
   std::string mSurroundingText;
 
index c51bcff..1d9294f 100755 (executable)
@@ -173,7 +173,7 @@ Dali::ImfManager ImfManager::Get()
 
       // The Ecore_X_Window needs to use the ImfManager.
       // Only when the render surface is window, we can get the Ecore_X_Window.
-      Ecore_X_Window ecoreXwin( AnyCast< Ecore_X_Window >( nativeWindow ) );
+      Ecore_X_Window *ecoreXwin( AnyCast< Ecore_X_Window* >( nativeWindow ) );
       if ( ecoreXwin )
       {
         // If we fail to get Ecore_X_Window, we can't use the ImfManager correctly.
@@ -190,20 +190,20 @@ Dali::ImfManager ImfManager::Get()
     }
   }
 
-  if ( ( imfManager != NULL ) &&!imfManager->mInited )
+  if ( ( imfManager != NULL ) !imfManager->mInited )
   {
     ecore_imf_init();
     imfManager->CreateContext( imfManager->mEcoreXWin );
 
     imfManager->ConnectCallbacks();
-    VirtualKeyboard::ConnectCallbacks( imfManager->mIMFContext );
+    VirtualKeyboard::ConnectCallbacks( mIMFContext );
     imfManager->mInited = true;
   }
 
   return manager;
 }
 
-ImfManager::ImfManager(Ecore_X_Window ecoreXwin )
+ImfManager::ImfManager( Ecore_X_Window* ecoreXwin )
 : mIMFContext(),
   mEcoreXWin( ecoreXwin ),
   mIMFCursorPosition( 0 ),
@@ -219,7 +219,7 @@ ImfManager::~ImfManager()
   Finalize();
 }
 
-void ImfManager::CreateContext( Ecore_X_Window ecoreXwin )
+void ImfManager::CreateContext( Ecore_X_Window* ecoreXwin )
 {
   DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::CreateContext\n" );