X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4590236d741307708c08fe30c4e5e4f8185d6d7..21bd196564d8483879a57c40ec1eea64114f9bd4:/src/gtk/textctrl.cpp diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 2fe6b59267..5ec85604f1 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -609,10 +609,13 @@ bool wxTextCtrl::Create( wxWindow *parent, { // GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4 #ifdef __WXGTK24__ - wrap = GTK_WRAP_WORD_CHAR; -#else - wrap = GTK_WRAP_WORD; + if ( !gtk_check_version(2,4,0) ) + { + wrap = GTK_WRAP_WORD_CHAR; + } + else #endif + wrap = GTK_WRAP_WORD; } gtk_text_view_set_wrap_mode( GTK_TEXT_VIEW( m_text ), wrap );