Color chooser: More accessible names

Set the accessible name of the 'custom color' button too.
This commit is contained in:
Matthias Clasen 2014-01-05 09:19:58 -05:00
parent 89e8624cb3
commit b962d7686a
2 changed files with 4 additions and 2 deletions

View File

@ -526,7 +526,8 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
gtk_widget_set_name (button, "add-color-button");
atk_obj = gtk_widget_get_accessible (button);
atk_object_set_role (atk_obj, ATK_ROLE_PUSH_BUTTON);
atk_object_set_description (atk_obj, _("Create custom color"));
atk_object_set_name (atk_obj, _("Custom color"));
atk_object_set_description (atk_obj, _("Create a custom color"));
connect_button_signals (button, cc);
gtk_color_swatch_set_icon (GTK_COLOR_SWATCH (button), "list-add-symbolic");
gtk_container_add (GTK_CONTAINER (box), button);

View File

@ -717,7 +717,8 @@ window1
"push button"
parent: unnamed-GtkContainerAccessible-39
index: 0
description: Create custom color
name: Custom color
description: Create a custom color
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>