X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1029169f0860d4d3a99f8a5406d65a7700a72a79..8feec28c876b20dd98f1c73c694493ab2973226f:/include/wx/gtk/filepicker.h diff --git a/include/wx/gtk/filepicker.h b/include/wx/gtk/filepicker.h index 50e533f9ee..0030e4c61c 100644 --- a/include/wx/gtk/filepicker.h +++ b/include/wx/gtk/filepicker.h @@ -40,7 +40,17 @@ { \ 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; } //-----------------------------------------------------------------------------