summaryrefslogtreecommitdiff
path: root/gtk/gtkinfobar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-04 17:44:14 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-01-04 17:44:14 -0500
commit2f4b57716501717c82e01fe36ae2151550c8bcc7 (patch)
treed0928eeceaaf589c70c69ab38ef41ae9a8c3baf9 /gtk/gtkinfobar.c
parente904d1c97d8f9d96634a32ced1f1ef175a9ba68c (diff)
downloadgtk+-2f4b57716501717c82e01fe36ae2151550c8bcc7.tar.gz
GtkInfoBar: Set a more accurate accessible role
And update the a11y tests to match. Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=721042
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r--gtk/gtkinfobar.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 8e99b1683d..74e9b78625 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -1184,7 +1184,7 @@ gtk_info_bar_set_message_type (GtkInfoBar *info_bar,
{
const char *name = NULL;
- atk_object_set_role (atk_obj, ATK_ROLE_ALERT);
+ atk_object_set_role (atk_obj, ATK_ROLE_INFO_BAR);
switch (message_type)
{
@@ -1213,9 +1213,7 @@ gtk_info_bar_set_message_type (GtkInfoBar *info_bar,
}
if (name)
- {
- atk_object_set_name (atk_obj, name);
- }
+ atk_object_set_name (atk_obj, name);
}
if (type_class[priv->message_type])