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 );
}
}
if( mIMFContext )
{
- int* length = NULL;
- ecore_imf_context_input_panel_imdata_get( mIMFContext, &data, length );
+ int length = 256;
+ char* buffer = reinterpret_cast< char* >( calloc ( 1, length * sizeof ( char ) ) );
+ if( buffer != NULL )
+ {
+ ecore_imf_context_input_panel_imdata_get( mIMFContext, buffer, &length );
+ data = buffer;
+ free( buffer );
+ }
}
}
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 );
}
}
if( mIMFContext )
{
- int* length = NULL;
- ecore_imf_context_input_panel_imdata_get( mIMFContext, &data, length );
+ int length = 256;
+ char* buffer = reinterpret_cast< char* >( calloc ( 1, length * sizeof ( char ) ) );
+ if( buffer != NULL )
+ {
+ ecore_imf_context_input_panel_imdata_get( mIMFContext, buffer, &length );
+ data = buffer;
+ free( buffer );
+ }
}
}