From c31d9d5e3dbe51841eca972cd418981540145009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Mon, 4 Jun 2012 18:23:51 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/st/st-label.c b/src/st/st-label.c index 0d00ba767..4954d4937 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));