From 604919b2ce39088d0e458eb193c064a027569504 Mon Sep 17 00:00:00 2001 From: Mengjie Yu Date: Wed, 1 Dec 2004 05:55:39 +0000 Subject: add mnemonic for buttons. add atk name for the popup button. add access 2004-12-01 Mengjie Yu * em-account-editor.c: (emae_option_toggle), (emae_receive_options_item):add mnemonic for buttons. * em-format-html-display.c: (efhd_attachment_button):add atk name for the popup button. * mail-account-gui.c: (mail_account_gui_build_extra_conf):add access key for checkbox. * message-list.c: (message_list_construct):add a atk name for the message list. svn path=/trunk/; revision=28029 --- mail/mail-account-gui.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mail/mail-account-gui.c') diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 7f11421929..1335af7833 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1091,7 +1091,7 @@ mail_account_gui_build_extra_conf (MailAccountGui *gui, const char *url_string) enable_widget = path_label; } else { /* make a new label */ - label = gtk_label_new (entries[i].text); + label = gtk_label_new_with_mnemonic (entries[i].text); gtk_table_resize (cur_table, cur_table->nrows + 1, 2); gtk_table_attach (cur_table, label, 0, 2, rows, rows + 1, GTK_EXPAND | GTK_FILL, 0, 0, 0); @@ -1106,7 +1106,7 @@ mail_account_gui_build_extra_conf (MailAccountGui *gui, const char *url_string) GtkWidget *checkbox; gboolean active; - checkbox = gtk_check_button_new_with_label (entries[i].text); + checkbox = gtk_check_button_new_with_mnemonic (entries[i].text); if (url) active = camel_url_get_param (url, entries[i].name) != NULL; else @@ -1143,9 +1143,10 @@ mail_account_gui_build_extra_conf (MailAccountGui *gui, const char *url_string) entry = path; } else { /* make a new text entry with label */ - label = gtk_label_new (entries[i].text); + label = gtk_label_new_with_mnemonic (entries[i].text); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0); entry = gtk_entry_new (); + gtk_label_set_mnemonic_widget (label, entry); gtk_table_attach (cur_table, label, 0, 1, rows, rows + 1, GTK_FILL, 0, 0, 0); @@ -1211,7 +1212,7 @@ mail_account_gui_build_extra_conf (MailAccountGui *gui, const char *url_string) } hbox = gtk_hbox_new (FALSE, 0); - checkbox = gtk_check_button_new_with_label (pre); + checkbox = gtk_check_button_new_with_mnemonic (pre); g_free (pre); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), enable); adj = gtk_adjustment_new (def, min, max, 1, 1, 1); -- cgit