From 8211986425e3db4eed2d4e6e6354c80f0f6aa730 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Tue, 14 Jun 2016 20:26:54 +0900 Subject: [PATCH] [3.0] temporary fix for build error Change-Id: Id511fd3914866c1b6f758199616c269d0770d86c --- adaptors/wayland/input/text/text-input-manager.cpp | 6 +++--- adaptors/wayland/input/text/text-input-manager.h | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/adaptors/wayland/input/text/text-input-manager.cpp b/adaptors/wayland/input/text/text-input-manager.cpp index e9a5fc7..94c8ec2 100755 --- a/adaptors/wayland/input/text/text-input-manager.cpp +++ b/adaptors/wayland/input/text/text-input-manager.cpp @@ -373,11 +373,11 @@ void TextInputManager::Reset() wl_display_flush( mDisplay ); } -void TextInputManager::SetSurroundingText( uint32_t serial, std::string text, unsigned int cursor) +void TextInputManager::SetSurroundingText( std::string text, unsigned int cursor, unsigned int anchor ) { - TextInputManager::SeatInfo& info = TextInputManager::Get().GetLastActiveSeat(); + //TextInputManager::SeatInfo& info = TextInputManager::Get().GetLastActiveSeat(); - wl_text_input_set_surrounding_text( info.mSeat->GetTextInputInterface(), serial, text.c_str(), cursor); + //wl_text_input_set_surrounding_text( info.mSeat->GetTextInputInterface(), text.c_str(), cursor, anchor ); wl_display_flush( mDisplay ); } diff --git a/adaptors/wayland/input/text/text-input-manager.h b/adaptors/wayland/input/text/text-input-manager.h index baa7da4..7033471 100755 --- a/adaptors/wayland/input/text/text-input-manager.h +++ b/adaptors/wayland/input/text/text-input-manager.h @@ -220,11 +220,13 @@ 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 - * @param[in] serial the serial + * text anchor is the same as cursor. * @param[in] text the text * @param[in] cursor cursor position + * @param[in] anchor anchor position */ - void SetSurroundingText( uint32_t serial, std::string text, unsigned int cursor); + void SetSurroundingText( std::string text, unsigned int cursor, unsigned int anchor ); + public: // virtual keyboard signals -- 2.7.4