]> git.saurik.com Git - wxWidgets.git/commitdiff
Restore ability to have a much lower runtime GTK version than build time - down to...
authorMart Raudsepp <leio@gentoo.org>
Sun, 10 Sep 2006 04:23:02 +0000 (04:23 +0000)
committerMart Raudsepp <leio@gentoo.org>
Sun, 10 Sep 2006 04:23:02 +0000 (04:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 0cdcb2b0bdd211ec9b64c884ec2edc7287dbf4ca..866b3275666b1397ae7f7511731d06ef9c1f324c 100644 (file)
@@ -2668,7 +2668,7 @@ void wxWindowGTK::PostCreation()
                           this);
     }
 #ifdef GTK_IS_FILE_CHOOSER_BUTTON
-    else if (GTK_IS_FILE_CHOOSER_BUTTON(m_widget))
+    else if (!gtk_check_version(2,6,0) && GTK_IS_FILE_CHOOSER_BUTTON(m_widget))
     {
         // If we connect to the "size_request" signal of a GtkFileChooserButton
         // then that control won't be sized properly when placed inside sizers
@@ -2690,7 +2690,7 @@ void wxWindowGTK::PostCreation()
     InheritAttributes();
 
     m_hasVMT = true;
-    
+
     SetLayoutDirection(wxLayout_Default);
 
     // unless the window was created initially hidden (i.e. Hide() had been
@@ -3397,7 +3397,7 @@ bool wxWindowGTK::Reparent( wxWindowBase *newParentBase )
 
     /* reverse: prevent GTK from deleting the widget arbitrarily */
     gtk_widget_unref( m_widget );
-    
+
     SetLayoutDirection(wxLayout_Default);
 
     return true;