From 80f08642d2c4dc8636e9fb90c935734703a54c78 Mon Sep 17 00:00:00 2001 From: Mengjie Yu Date: Wed, 1 Dec 2004 05:51:51 +0000 Subject: add mnemonic for label. add description for password dialog. 2004-12-01 Mengjie Yu * e-config.c: (ec_rebuild):add mnemonic for label. * e-passwords.c: (ep_ask_password):add description for password dialog. svn path=/trunk/; revision=28028 --- e-util/e-passwords.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'e-util/e-passwords.c') diff --git a/e-util/e-passwords.c b/e-util/e-passwords.c index 6fe405ee50..f799796818 100644 --- a/e-util/e-passwords.c +++ b/e-util/e-passwords.c @@ -420,6 +420,7 @@ ep_ask_password(EPassMsg *msg) GtkWidget *vbox; int type = msg->flags & E_PASSWORDS_REMEMBER_MASK; int noreply = msg->noreply; + AtkObject *a11y; msg->noreply = 1; @@ -442,6 +443,9 @@ ep_ask_password(EPassMsg *msg) gtk_container_set_border_width((GtkContainer *)vbox, 6); msg->entry = gtk_entry_new (); + + a11y = gtk_widget_get_accessible (msg->entry); + atk_object_set_description (a11y, msg->prompt); gtk_entry_set_visibility ((GtkEntry *)msg->entry, !(msg->flags & E_PASSWORDS_SECRET)); gtk_entry_set_activates_default((GtkEntry *)msg->entry, TRUE); gtk_box_pack_start (GTK_BOX (vbox), msg->entry, TRUE, FALSE, 3); -- cgit v1.2.3