From e992b405fb72da807750c7f521bf9d51bb97b982 Mon Sep 17 00:00:00 2001 From: Mengjie Yu Date: Tue, 25 Jan 2005 10:30:17 +0000 Subject: add a11y names for color pickers. 2005-01-25 Mengjie Yu * em-mailer-prefs.c: (restore_labels_clicked), (em_mailer_prefs_construct): add a11y names for color pickers. svn path=/trunk/; revision=28549 --- mail/em-mailer-prefs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/em-mailer-prefs.c') diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c index d5b4a746ed..5b88e7b4c9 100644 --- a/mail/em-mailer-prefs.c +++ b/mail/em-mailer-prefs.c @@ -248,6 +248,7 @@ restore_labels_clicked (GtkWidget *widget, gpointer user_data) for (i = 0; i < 5; i++) { gtk_entry_set_text (prefs->labels[i].name, _(label_defaults[i].name)); colorpicker_set_color (prefs->labels[i].color, label_defaults[i].colour); + atk_object_set_name (gtk_widget_get_accessible (prefs->labels[i].color), _(label_defaults[i].name)); } } @@ -865,7 +866,6 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs) while (list != NULL && i < 5) { MailConfigLabel *label; char *widget_name; - label = list->data; widget_name = g_strdup_printf ("txtLabel%d", i); @@ -884,6 +884,8 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs) colorpicker_set_color (prefs->labels[i].color, label->colour); g_signal_connect (prefs->labels[i].color, "color-set", G_CALLBACK (label_color_set), prefs); + atk_object_set_name (gtk_widget_get_accessible (prefs->labels[i].color), label->name); + i++; list = list->next; } -- cgit