Merge branch 'drop-realize-invariant' into 'master'

Drop parent->realized => child->realized invariant

See merge request GNOME/gtk!1783
This commit is contained in:
Emmanuele Bassi 2020-04-28 14:11:55 +00:00
commit 65c56ea812

View File

@ -5901,11 +5901,7 @@ gtk_widget_reposition_after (GtkWidget *widget,
if (prev_parent == NULL)
g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_PARENT]);
/* Enforce realized/mapped invariants
*/
if (_gtk_widget_get_realized (priv->parent))
gtk_widget_realize (widget);
/* Enforce mapped invariants */
if (_gtk_widget_get_visible (priv->parent) &&
_gtk_widget_get_visible (widget))
{