diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/em-mailer-prefs.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 255a4d1403..47323f0138 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2005-01-25 Mengjie Yu <meng-jie.yu@sun.com> + + * em-mailer-prefs.c: (restore_labels_clicked), + (em_mailer_prefs_construct): + add a11y names for color pickers. + 2005-01-24 Hans Petter Jansson <hpj@novell.com> * Makefile.am (libevolution_mail_la_LIBADD): Pull in the contact 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; } |