If hierarchy is bad, base classes would assert.
Fixes bug #
1206516
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34646
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
GtkFileChooserAction gtk_action;
GtkWindow* gtk_parent = NULL;
if (parent)
- gtk_parent = GTK_WINDOW(parent->m_widget);
+ gtk_parent = GTK_WINDOW( gtk_widget_get_toplevel(parent->m_widget) );
gchar* ok_btn_stock;
if ( style & wxSAVE )
GtkFileChooserAction gtk_action;
GtkWindow* gtk_parent = NULL;
if (parent)
- gtk_parent = GTK_WINDOW(parent->m_widget);
+ gtk_parent = GTK_WINDOW( gtk_widget_get_toplevel(parent->m_widget) );
gchar* ok_btn_stock;
if ( style & wxSAVE )