aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMengjie Yu <meng-jie.yu@sun.com>2005-01-25 18:30:17 +0800
committerHarry Lu <haip@src.gnome.org>2005-01-25 18:30:17 +0800
commite992b405fb72da807750c7f521bf9d51bb97b982 (patch)
treed6919861034cf94e8976722355d2ec4dfd291ee9
parent795560a6a8d9e032d8bee8bd830736b72d7de4e3 (diff)
downloadgsoc2013-evolution-e992b405fb72da807750c7f521bf9d51bb97b982.tar.gz
gsoc2013-evolution-e992b405fb72da807750c7f521bf9d51bb97b982.tar.zst
gsoc2013-evolution-e992b405fb72da807750c7f521bf9d51bb97b982.zip
add a11y names for color pickers.
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. svn path=/trunk/; revision=28549
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/em-mailer-prefs.c4
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;
}