changed wxGTK_CONV* macros to use utf8_str() and FromUTF8() so that we don't do any unnecessary conversions in UTF8 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -955,16 +955,12 @@ wxString wxTextCtrl::GetValue() const
|
||||
gtk_text_buffer_get_end_iter( m_buffer, &end );
|
||||
wxGtkString text(gtk_text_buffer_get_text(m_buffer, &start, &end, true));
|
||||
|
||||
const wxWxCharBuffer buf = wxGTK_CONV_BACK(text);
|
||||
if ( buf )
|
||||
tmp = buf;
|
||||
return wxGTK_CONV_BACK(text);
|
||||
}
|
||||
else
|
||||
{
|
||||
const gchar *text = gtk_entry_get_text( GTK_ENTRY(m_text) );
|
||||
const wxWxCharBuffer buf = wxGTK_CONV_BACK( text );
|
||||
if ( buf )
|
||||
tmp = buf;
|
||||
return wxGTK_CONV_BACK(text);
|
||||
}
|
||||
|
||||
return tmp;
|
||||
|
Reference in New Issue
Block a user