forked from AuroraMiddleware/gtk
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:
parent
ff6cd8f75e
commit
09239eb670
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user