a11y: do not expose a label text if 'hidden' style class is used

https://bugzilla.gnome.org/show_bug.cgi?id=675341
This commit is contained in:
Alejandro Piñeiro 2012-06-04 18:23:51 +02:00
parent cda8a545f1
commit c31d9d5e3d

View File

@ -490,7 +490,7 @@ st_label_accessible_get_name (AtkObject *obj)
actor = CLUTTER_ACTOR (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (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; name = NULL;
else else
name = st_label_get_text (ST_LABEL (actor)); name = st_label_get_text (ST_LABEL (actor));