mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
flow box: Avoid excessive signals
We were emitting the a11y ::selection-changed signal much more often than ::selected-children-changed. Thats not necessary.
This commit is contained in:
parent
bf8a169cb9
commit
7ac684e9e3
@ -961,8 +961,6 @@ static gboolean
|
||||
gtk_flow_box_child_set_selected (GtkFlowBoxChild *child,
|
||||
gboolean selected)
|
||||
{
|
||||
GtkFlowBox *box;
|
||||
|
||||
if (CHILD_PRIV (child)->selected != selected)
|
||||
{
|
||||
CHILD_PRIV (child)->selected = selected;
|
||||
@ -973,9 +971,6 @@ gtk_flow_box_child_set_selected (GtkFlowBoxChild *child,
|
||||
gtk_widget_unset_state_flags (GTK_WIDGET (child),
|
||||
GTK_STATE_FLAG_SELECTED);
|
||||
|
||||
box = gtk_flow_box_child_get_box (child);
|
||||
_gtk_flow_box_accessible_selection_changed (GTK_WIDGET (box));
|
||||
|
||||
gtk_widget_queue_draw (GTK_WIDGET (child));
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user