]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/filepicker.h
Tidy up includes and #if wxUSE statements.
[wxWidgets.git] / include / wx / gtk / filepicker.h
index 50e533f9eed2e16ada722e5d1cd482bf0bff18ef..0030e4c61cc4bb3a869e755158a95a30eaad3724 100644 (file)
     {                                                                         \
         m_dialog->Destroy();                                                  \
         return wxButton::Destroy();                                           \
-    }
+    }                                                                         \
+                                                                              \
+    /* even if wx derive from wxGenericFileButton, i.e. from wxButton, our */ \
+    /* native GTK+ widget does not derive from GtkButton thus *all* uses   */ \
+    /* GTK_BUTTON(m_widget) macro done by wxButton must be bypassed to     */ \
+    /* avoid bunch of GTK+ warnings like:                                  */ \
+    /*      invalid cast from `GtkFileChooserButton' to  `GtkButton'       */ \
+    /* so, override wxButton::GTKGetWindow and return NULL as GTK+ doesn't */ \
+    /* give us access to the internal GdkWindow of a GtkFileChooserButton  */ \
+    virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const         \
+        { return NULL; }
 
 
 //-----------------------------------------------------------------------------