From: Vadim Zeitlin Date: Mon, 28 Mar 2005 00:42:24 +0000 (+0000) Subject: do runtime check for GTK+ 2.4 and not only compile-time X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c79146df7ece620777b8e4aa9ad98a8b7be2bac7?ds=inline do runtime check for GTK+ 2.4 and not only compile-time git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 2fe6b59267..f918d8154f 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -609,7 +609,11 @@ bool wxTextCtrl::Create( wxWindow *parent, { // GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4 #ifdef __WXGTK24__ - wrap = GTK_WRAP_WORD_CHAR; + if ( !gtk_check_version(2,4,0) ) + { + wrap = GTK_WRAP_WORD_CHAR; + } + else #else wrap = GTK_WRAP_WORD; #endif diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index 2fe6b59267..f918d8154f 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -609,7 +609,11 @@ bool wxTextCtrl::Create( wxWindow *parent, { // GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4 #ifdef __WXGTK24__ - wrap = GTK_WRAP_WORD_CHAR; + if ( !gtk_check_version(2,4,0) ) + { + wrap = GTK_WRAP_WORD_CHAR; + } + else #else wrap = GTK_WRAP_WORD; #endif