Avoid problems when reparenting a TLW under a child in wxGTK.
Don't use a TLW with gtk_fixed_put(). Closes #15237. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -379,6 +379,9 @@ void wxPizza::move(GtkWidget* widget, int x, int y, int width, int height)
|
|||||||
|
|
||||||
void wxPizza::put(GtkWidget* widget, int x, int y, int width, int height)
|
void wxPizza::put(GtkWidget* widget, int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
|
// Re-parenting a TLW under a child window is possible at wx level but
|
||||||
|
// using a TLW as child at GTK+ level results in problems, so don't do it.
|
||||||
|
if (!gtk_widget_is_toplevel(GTK_WIDGET(widget)))
|
||||||
gtk_fixed_put(GTK_FIXED(this), widget, 0, 0);
|
gtk_fixed_put(GTK_FIXED(this), widget, 0, 0);
|
||||||
|
|
||||||
wxPizzaChild* child = new wxPizzaChild;
|
wxPizzaChild* child = new wxPizzaChild;
|
||||||
|
Reference in New Issue
Block a user