]> git.saurik.com Git - wxWidgets.git/commitdiff
do runtime check for GTK+ 2.4 and not only compile-time
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 28 Mar 2005 00:42:24 +0000 (00:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 28 Mar 2005 00:42:24 +0000 (00:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp
src/gtk1/textctrl.cpp

index 2fe6b59267fbbc69886ac4372055417b439e097c..f918d8154f189c30ed54575d9e822320103aa285 100644 (file)
@@ -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
index 2fe6b59267fbbc69886ac4372055417b439e097c..f918d8154f189c30ed54575d9e822320103aa285 100644 (file)
@@ -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