[gnome-shell] a11y: do not expose a label text if 'hidden' style class is used



commit c31d9d5e3dbe51841eca972cd418981540145009
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Mon Jun 4 18:23:51 2012 +0200

    a11y: do not expose a label text if 'hidden' style class is used
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675341

 src/st/st-label.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-label.c b/src/st/st-label.c
index 0d00ba7..4954d49 100644
--- a/src/st/st-label.c
+++ b/src/st/st-label.c
@@ -490,7 +490,7 @@ st_label_accessible_get_name (AtkObject *obj)
 
       actor = CLUTTER_ACTOR (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (obj)));
 
-      if (actor == NULL) /* State is defunct */
+      if (actor == NULL || st_widget_has_style_class_name (ST_WIDGET (actor), "hidden"))
         name = NULL;
       else
         name = st_label_get_text (ST_LABEL (actor));



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