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:
parent
c2c435c9d8
commit
64321998df
@ -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; }
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user