[gtk/gtk-4-2: 70/91] a11y: Don't sent redundant property changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-2: 70/91] a11y: Don't sent redundant property changes
- Date: Tue, 4 May 2021 02:05:42 +0000 (UTC)
commit a5b4c2bb485b748bc318d859d63c301d11f23f27
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Apr 22 21:05:35 2021 -0400
a11y: Don't sent redundant property changes
We were sending a property changed event for every set
property whenever we were sending any updates.
gtk/gtkatcontext.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/gtk/gtkatcontext.c b/gtk/gtkatcontext.c
index 709e0f063f..0d58350358 100644
--- a/gtk/gtkatcontext.c
+++ b/gtk/gtkatcontext.c
@@ -696,15 +696,8 @@ gtk_at_context_update (GtkATContext *self)
self->updated_states == 0)
return;
- GtkAccessibleStateChange changed_states =
- gtk_accessible_attribute_set_get_changed (self->states);
- GtkAccessiblePropertyChange changed_properties =
- gtk_accessible_attribute_set_get_changed (self->properties);
- GtkAccessibleRelationChange changed_relations =
- gtk_accessible_attribute_set_get_changed (self->relations);
-
GTK_AT_CONTEXT_GET_CLASS (self)->state_change (self,
- changed_states, changed_properties, changed_relations,
+ self->updated_states, self->updated_properties,
self->updated_relations,
self->states, self->properties, self->relations);
g_signal_emit (self, obj_signals[STATE_CHANGE], 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]