Applied FRM's patch [ 1553958 ] Fix for invalid cast from

GtkFileChooserButton to GtkButton


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-09-07 13:24:08 +00:00
parent c2c435c9d8
commit 64321998df

View File

@ -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; }
//-----------------------------------------------------------------------------