[gtk+] GtkColorChooserWidget: Set accessible names
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkColorChooserWidget: Set accessible names
- Date: Sun, 5 Jan 2014 04:31:22 +0000 (UTC)
commit c6175bbe68e47fb26088cd0cac4dff4e0e4fe87d
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 4 23:30:28 2014 -0500
GtkColorChooserWidget: Set accessible names
As pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721053
we should set the accessible name on the color swatch widgets,
not the descriptions.
gtk/gtkcolorchooserwidget.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 71bdc89..9665490 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -354,8 +354,8 @@ add_palette (GtkColorChooserWidget *cc,
atk_obj = gtk_widget_get_accessible (p);
if (names)
{
- atk_object_set_description (atk_obj,
- g_dpgettext2 (GETTEXT_PACKAGE, "Color name", names[i]));
+ atk_object_set_name (atk_obj,
+ g_dpgettext2 (GETTEXT_PACKAGE, "Color name", names[i]));
}
else
{
@@ -363,7 +363,7 @@ add_palette (GtkColorChooserWidget *cc,
name = accessible_color_name (&colors[i]);
text = g_strdup_printf (_("Color: %s"), name);
- atk_object_set_description (atk_obj, text);
+ atk_object_set_name (atk_obj, text);
g_free (text);
g_free (name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]