X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a30ee8f2c5e90a26415132033a98b82ac9af5b4..63cc5d9d20f997961881855811f6b6987679969d:/src/gtk/win_gtk.c diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index 43f275e840..e4fe2c1812 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -225,14 +225,16 @@ gtk_myfixed_put (GtkMyFixed *myfixed, myfixed->children = g_list_append (myfixed->children, child_info); - if (GTK_WIDGET_REALIZED (myfixed) && !GTK_WIDGET_REALIZED (widget)) + if (GTK_WIDGET_REALIZED (myfixed)) gtk_widget_realize (widget); - if (GTK_WIDGET_MAPPED (myfixed) && !GTK_WIDGET_MAPPED (widget) && GTK_WIDGET_VISIBLE (widget)) - gtk_widget_map (widget); - - if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (myfixed)) - gtk_widget_queue_resize (GTK_WIDGET (myfixed)); + if (GTK_WIDGET_VISIBLE (myfixed) && GTK_WIDGET_VISIBLE (widget)) + { + if (GTK_WIDGET_MAPPED (myfixed)) + gtk_widget_map (widget); + + gtk_widget_queue_resize (GTK_WIDGET (myfixed)); + } } void