mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 07:30:09 +00:00
widget: Don't add reordered children
gtk_widget_reposition_after is called both to add new children, and to reposition existing children. We only want to emit accessible changes in the former case (since AT-SPI doesn't have events for reordering).
This commit is contained in:
parent
5b2b2feb9f
commit
1e13acb206
@ -5794,9 +5794,10 @@ gtk_widget_reposition_after (GtkWidget *widget,
|
||||
gtk_widget_queue_compute_expand (parent);
|
||||
}
|
||||
|
||||
gtk_accessible_update_children (GTK_ACCESSIBLE (parent),
|
||||
GTK_ACCESSIBLE (widget),
|
||||
GTK_ACCESSIBLE_CHILD_STATE_ADDED);
|
||||
if (prev_parent == NULL)
|
||||
gtk_accessible_update_children (GTK_ACCESSIBLE (parent),
|
||||
GTK_ACCESSIBLE (widget),
|
||||
GTK_ACCESSIBLE_CHILD_STATE_ADDED);
|
||||
|
||||
gtk_widget_pop_verify_invariants (widget);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user