]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
take const wxWindow * in wxUxThemeHandle ctor
[wxWidgets.git] / src / gtk / window.cpp
index c5883bd34621418be9c72e64165f673d9881c46b..5ebf62893df1f5649ea98234e84c50b38c278e83 100644 (file)
@@ -2746,10 +2746,15 @@ void wxWindowGTK::PostCreation()
                           G_CALLBACK (wxgtk_combo_size_request_callback),
                           this);
     }
+#ifdef GTK_IS_FILE_CHOOSER_BUTTON
     else if (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
+        // (this can be tested removing this elseif and running XRC or WIDGETS samples)
         // FIXME: what should be done here ?
     }
+#endif
     else
     {
         // This is needed if we want to add our windows into native