]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
Add comments explaining the workaround for mingw 3.2.3
[wxWidgets.git] / src / gtk / textctrl.cpp
index 2fe6b59267fbbc69886ac4372055417b439e097c..5ec85604f15d1f50a51eac443c850fa5eb3f25cc 100644 (file)
@@ -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 );