[gtk+] GtkInfoBar: Set a more accurate accessible role
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkInfoBar: Set a more accurate accessible role
- Date: Sat, 4 Jan 2014 22:44:56 +0000 (UTC)
commit 2f4b57716501717c82e01fe36ae2151550c8bcc7
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 4 17:44:14 2014 -0500
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
gtk/gtkinfobar.c | 6 ++----
testsuite/a11y/infobar.txt | 2 +-
2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 8e99b16..74e9b78 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])
diff --git a/testsuite/a11y/infobar.txt b/testsuite/a11y/infobar.txt
index 2e977ac..47dedcd 100644
--- a/testsuite/a11y/infobar.txt
+++ b/testsuite/a11y/infobar.txt
@@ -7,7 +7,7 @@ window1
layer: window
alpha: 1
bar1
- "alert"
+ "info bar"
parent: window1
index: 0
name: Information
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]