]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/app.cpp
don't let the user modify the contents of read-only control (modified patch 1463707)
[wxWidgets.git] / src / gtk / app.cpp
index 286164ca96f27436a2f4fed2685452f2826aa7c6..8f8e0869dc0b8d42bf36254580b6b2cb67d11c2c 100644 (file)
@@ -543,7 +543,7 @@ GdkVisual *wxApp::GetGdkVisual()
     if (m_glVisualInfo)
         visual = gdkx_visual_get( ((XVisualInfo *) m_glVisualInfo)->visualid );
     else
-        visual = gdk_window_get_visual( wxGetRootWindow()->window );
+        visual = gdk_drawable_get_visual( wxGetRootWindow()->window );
 
     wxASSERT( visual );
 
@@ -555,18 +555,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
     bool init_result;
 
 #if wxUSE_THREADS
-    // GTK 1.2 up to version 1.2.3 has broken threads
-    if ((gtk_major_version == 1) &&
-        (gtk_minor_version == 2) &&
-        (gtk_micro_version < 4))
-    {
-        printf( "wxWidgets warning: GUI threading disabled due to outdated GTK version\n" );
-    }
-    else
-    {
-        if (!g_thread_supported())
-            g_thread_init(NULL);
-    }
+    if (!g_thread_supported())
+        g_thread_init(NULL);
 #endif // wxUSE_THREADS
 
     gtk_set_locale();