[gtk+] a11y: Fix copy-paste error in state flag notification



commit 7b4c49a95f1f3adb67aa7f2319780f1ff811eaad
Author: Benjamin Otte <otte redhat com>
Date:   Tue Feb 19 23:22:48 2013 +0100

    a11y: Fix copy-paste error in state flag notification
    
    We weren't checking the removed flag but the added flag for removal
    emissions, so what would happen for every state change notification was:
    - on state-added, both an "added" and a "removed" event were emitted
    - on state-removed, nothing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694059

 gtk/a11y/gtkcellaccessible.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/a11y/gtkcellaccessible.c b/gtk/a11y/gtkcellaccessible.c
index e03496b..b5846e8 100644
--- a/gtk/a11y/gtkcellaccessible.c
+++ b/gtk/a11y/gtkcellaccessible.c
@@ -412,7 +412,7 @@ _gtk_cell_accessible_state_changed (GtkCellAccessible    *cell,
         atk_object_notify_state_change (object,
                                         state_map[i].atk_state,
                                         !state_map[i].invert);
-      if (added & state_map[i].renderer_state)
+      if (removed & state_map[i].renderer_state)
         atk_object_notify_state_change (object,
                                         state_map[i].atk_state,
                                         state_map[i].invert);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]