mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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
This commit is contained in:
parent
e904d1c97d
commit
2f4b577165
@ -1184,7 +1184,7 @@ gtk_info_bar_set_message_type (GtkInfoBar *info_bar,
|
|||||||
{
|
{
|
||||||
const char *name = NULL;
|
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)
|
switch (message_type)
|
||||||
{
|
{
|
||||||
@ -1213,9 +1213,7 @@ gtk_info_bar_set_message_type (GtkInfoBar *info_bar,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (name)
|
if (name)
|
||||||
{
|
atk_object_set_name (atk_obj, name);
|
||||||
atk_object_set_name (atk_obj, name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type_class[priv->message_type])
|
if (type_class[priv->message_type])
|
||||||
|
@ -7,7 +7,7 @@ window1
|
|||||||
layer: window
|
layer: window
|
||||||
alpha: 1
|
alpha: 1
|
||||||
bar1
|
bar1
|
||||||
"alert"
|
"info bar"
|
||||||
parent: window1
|
parent: window1
|
||||||
index: 0
|
index: 0
|
||||||
name: Information
|
name: Information
|
||||||
|
Loading…
Reference in New Issue
Block a user