[gtk+] Color chooser: More accessible names



commit b962d7686acd4b23d6765b782b2fdb58d063195c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 5 09:19:58 2014 -0500

    Color chooser: More accessible names
    
    Set the accessible name of the 'custom color' button too.

 gtk/gtkcolorchooserwidget.c     |    3 ++-
 testsuite/a11y/colorchooser.txt |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 9665490..a24c993 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -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);
diff --git a/testsuite/a11y/colorchooser.txt b/testsuite/a11y/colorchooser.txt
index e3e73be..995f494 100644
--- a/testsuite/a11y/colorchooser.txt
+++ b/testsuite/a11y/colorchooser.txt
@@ -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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]