Revert "[3.0] temporary fix for build error" 02/75402/1
authortaeyoon <taeyoon0.lee@samsung.com>
Sat, 18 Jun 2016 04:36:53 +0000 (13:36 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Sat, 18 Jun 2016 04:37:36 +0000 (13:37 +0900)
This reverts commit 8211986425e3db4eed2d4e6e6354c80f0f6aa730.

Change-Id: I3907342f9d5d813310a939cf22bd91bd89e8cd13

adaptors/wayland/input/text/text-input-manager.cpp
adaptors/wayland/input/text/text-input-manager.h

index 94c8ec2..e9a5fc7 100755 (executable)
@@ -373,11 +373,11 @@ void TextInputManager::Reset()
   wl_display_flush( mDisplay );
 }
 
-void TextInputManager::SetSurroundingText( std::string text, unsigned int cursor, unsigned int anchor )
+void TextInputManager::SetSurroundingText( uint32_t serial, std::string text, unsigned int cursor)
 {
-  //TextInputManager::SeatInfo& info = TextInputManager::Get().GetLastActiveSeat();
+  TextInputManager::SeatInfo& info = TextInputManager::Get().GetLastActiveSeat();
 
-  //wl_text_input_set_surrounding_text( info.mSeat->GetTextInputInterface(), text.c_str(), cursor, anchor );
+  wl_text_input_set_surrounding_text( info.mSeat->GetTextInputInterface(), serial, text.c_str(), cursor);
 
   wl_display_flush( mDisplay );
 }
index 7033471..baa7da4 100755 (executable)
@@ -220,13 +220,11 @@ public:
    * UTF-8 encoded. Cursor is the byte offset within the
    * surrounding text. Anchor is the byte offset of the
    * selection anchor within the surrounding text. If there is no selected
-   * text anchor is the same as cursor.
+   * @param[in] serial the serial
    * @param[in] text the text
    * @param[in] cursor cursor position
-   * @param[in] anchor anchor position
    */
-  void SetSurroundingText( std::string text, unsigned int cursor, unsigned int anchor );
-
+  void SetSurroundingText( uint32_t serial, std::string text, unsigned int cursor);
 
 
 public: // virtual keyboard signals