atkobject: Stop to manage SELECTABLE/SELECTED states at AtkObject
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sun, 9 Dec 2012 10:57:38 +0000 (11:57 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Sun, 9 Dec 2012 10:57:38 +0000 (11:57 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=689907

atk/atkobject.c

index 4817e16..82e7124 100755 (executable)
@@ -1400,24 +1400,10 @@ static AtkStateSet*
 atk_object_real_ref_state_set (AtkObject *accessible) 
 {
   AtkStateSet *state_set;
-  AtkObject *ap;
   AtkObject *focus_object;
 
   state_set = atk_state_set_new ();
 
-  ap = atk_object_get_parent (accessible);
-  if (ap)
-    if (ATK_IS_SELECTION (ap))
-      {
-        int i;
-
-        atk_state_set_add_state (state_set, ATK_STATE_SELECTABLE);
-
-        i = atk_object_get_index_in_parent (accessible);
-        if (i >= 0)
-          if (atk_selection_is_child_selected(ATK_SELECTION (ap), i))
-            atk_state_set_add_state (state_set, ATK_STATE_SELECTED);
-      } 
   focus_object = atk_get_focus_object ();
   if (focus_object == accessible)
     atk_state_set_add_state (state_set, ATK_STATE_FOCUSED);