]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/textctrl.cpp
The colour is called Aquamarine, not Aquaramine. No,
[wxWidgets.git] / src / gtk1 / textctrl.cpp
index 9142eaa632ddf5532f803bafe676151a799d6a87..bdbc8e279ffb4f649b56ad3701821dbc0c88d025 100644 (file)
@@ -288,16 +288,12 @@ wxString wxTextCtrl::GetValue() const
     {
         gint len = gtk_text_get_length( GTK_TEXT(m_text) );
         char *text = gtk_editable_get_chars( GTK_EDITABLE(m_text), 0, len );
-#if wxUSE_UNICODE
         tmp = wxString(text,*wxConv_current);
-#else
-        tmp = text;
-#endif
         g_free( text );
     }
     else
     {
-        tmp = gtk_entry_get_text( GTK_ENTRY(m_text) );
+        tmp = wxString(gtk_entry_get_text( GTK_ENTRY(m_text) ),*wxConv_current);
     }
     return tmp;
 }