widget: Don't notify :parent when rearranging widgets

gtk_widget_reposition_after is also valid to call if the widget already
has a parent, so don't notify the parent property in that case.
This commit is contained in:
Timm Bäder 2017-10-29 17:27:53 +01:00
parent ff6cd8f75e
commit 09239eb670

View File

@ -8360,7 +8360,9 @@ gtk_widget_reposition_after (GtkWidget *widget,
if (priv->parent->priv->anchored && prev_parent == NULL)
_gtk_widget_propagate_hierarchy_changed (widget, NULL);
g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_PARENT]);
if (prev_parent == NULL)
g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_PARENT]);
/* Enforce realized/mapped invariants
*/