projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Set and Get InputPanelData()
[platform/core/uifw/dali-adaptor.git]
/
adaptors
/
x11
/
imf-manager-impl-x.cpp
diff --git
a/adaptors/x11/imf-manager-impl-x.cpp
b/adaptors/x11/imf-manager-impl-x.cpp
index
c9bef9c
..
6d9d2a2
100644
(file)
--- a/
adaptors/x11/imf-manager-impl-x.cpp
+++ b/
adaptors/x11/imf-manager-impl-x.cpp
@@
-590,25
+590,28
@@
void ImfManager::ApplyOptions( const InputMethodOptions& options )
}
}
}
}
-void ImfManager::SetInputPanel
User
Data( const std::string& data )
+void ImfManager::SetInputPanelData( const std::string& data )
{
{
- DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::SetInputPanel
User
Data\n" );
+ DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::SetInputPanelData\n" );
if( mIMFContext )
{
int length = data.length();
if( mIMFContext )
{
int length = data.length();
- ecore_imf_context_input_panel_imdata_set( mIMFContext,
&data
, length );
+ ecore_imf_context_input_panel_imdata_set( mIMFContext,
data.c_str()
, length );
}
}
}
}
-void ImfManager::GetInputPanel
User
Data( std::string& data )
+void ImfManager::GetInputPanelData( std::string& data )
{
{
- DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::GetInputPanel
User
Data\n" );
+ DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::GetInputPanelData\n" );
if( mIMFContext )
{
if( mIMFContext )
{
- int* length = NULL;
- ecore_imf_context_input_panel_imdata_get( mIMFContext, &data, length );
+ int length = 4096; // The max length is 4096 bytes
+ Dali::Vector< char > buffer;
+ buffer.Resize( length );
+ ecore_imf_context_input_panel_imdata_get( mIMFContext, &buffer[0], &length );
+ data = std::string( buffer.Begin(), buffer.End() );
}
}
}
}