aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-mailer-prefs.c
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 /mail/em-mailer-prefs.c
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
Diffstat (limited to 'mail/em-mailer-prefs.c')
-rw-r--r--mail/em-mailer-prefs.c4
1 files changed, 3 insertions, 1 deletions
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;
}