diff options
author | mengjie yu <meng-jie.yu@sun.com> | 2004-10-27 14:53:30 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-10-27 14:53:30 +0800 |
commit | 83e209ee7a1d19f906db3d4395bbda15862fcc85 (patch) | |
tree | 461192c8051ab1e5837cb03e950d7ab37267711b | |
parent | 907a8880ad13e211cc2a2d142d76a1a2af94a3ad (diff) | |
download | gsoc2013-evolution-83e209ee7a1d19f906db3d4395bbda15862fcc85.tar gsoc2013-evolution-83e209ee7a1d19f906db3d4395bbda15862fcc85.tar.gz gsoc2013-evolution-83e209ee7a1d19f906db3d4395bbda15862fcc85.tar.bz2 gsoc2013-evolution-83e209ee7a1d19f906db3d4395bbda15862fcc85.tar.lz gsoc2013-evolution-83e209ee7a1d19f906db3d4395bbda15862fcc85.tar.xz gsoc2013-evolution-83e209ee7a1d19f906db3d4395bbda15862fcc85.tar.zst gsoc2013-evolution-83e209ee7a1d19f906db3d4395bbda15862fcc85.zip |
fix for bugzilla #44876
2004-10-26 mengjie yu <meng-jie.yu@sun.com>
fix for bugzilla #44876
* e-msg-composer-hdrs.c (header_new_recipient), (create_headers): add access key for Reply_to,
From,Subject,To,Cc,Bcc,Post_to;
* e-msg-composer.c: (setup_signatures_menu):Add accesss key for Signature.
svn path=/trunk/; revision=27735
-rw-r--r-- | composer/ChangeLog | 8 | ||||
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 27 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 10 |
3 files changed, 31 insertions, 14 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index bc1a07d286..5310da6fce 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,11 @@ +2004-10-26 mengjie yu <meng-jie.yu@sun.com> + + fix for bugzilla #44876 + + * e-msg-composer-hdrs.c (header_new_recipient), (create_headers): add access key for Reply_to, + From,Subject,To,Cc,Bcc,Post_to; + * e-msg-composer.c: (setup_signatures_menu):Add accesss key for Signature. + 2004-10-19 JP Rosevear <jpr@novell.com> * e-msg-composer.c, e-msg-composer-attachment-bar.c: convert to diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index d43dde191b..c79bd1f4f6 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -536,7 +536,7 @@ header_new_recipient (EMsgComposerHdrs *hdrs, const char *name, const char *tip) priv = hdrs->priv; - ret.label = gtk_button_new_with_label (name); + ret.label = gtk_button_new_with_mnemonic (name); GTK_OBJECT_UNSET_FLAGS (ret.label, GTK_CAN_FOCUS); g_signal_connect_data (ret.label, "clicked", G_CALLBACK (address_button_clicked_cb), @@ -567,7 +567,7 @@ static void create_headers (EMsgComposerHdrs *hdrs) { EMsgComposerHdrsPrivate *priv = hdrs->priv; - + AtkObject *a11y; /* * Reply-To: * @@ -575,36 +575,39 @@ create_headers (EMsgComposerHdrs *hdrs) * because that causes from_changed to be called, which * expects the reply_to fields to be initialized. */ - priv->reply_to.label = gtk_label_new (_("Reply-To:")); + priv->reply_to.label = gtk_label_new_with_mnemonic (_("_Reply-To:")); priv->reply_to.entry = gtk_entry_new (); + gtk_label_set_mnemonic_widget (priv->reply_to.label, priv->reply_to.entry); /* * From */ - priv->from.label = gtk_label_new (_("From:")); + priv->from.label = gtk_label_new_with_mnemonic (_("Fr_om:")); priv->from.entry = create_from_optionmenu (hdrs); + gtk_label_set_mnemonic_widget (priv->from.label, e_msg_composer_hdrs_get_from_omenu (hdrs)); /* * Subject */ - priv->subject.label = gtk_label_new (_("Subject:")); + priv->subject.label = gtk_label_new_with_mnemonic (_("S_ubject:")); priv->subject.entry = gtk_entry_new (); + gtk_label_set_mnemonic_widget (priv->subject.label, priv->subject.entry); g_signal_connect (priv->subject.entry, "changed", G_CALLBACK (entry_changed), hdrs); - + /* * To, CC, and Bcc */ priv->to = header_new_recipient ( - hdrs, _("To:"), + hdrs, _("_To:"), _("Enter the recipients of the message")); priv->cc = header_new_recipient ( - hdrs, _("Cc:"), + hdrs, _("_Cc:"), _("Enter the addresses that will receive a carbon copy of the message")); priv->bcc = header_new_recipient ( - hdrs, _("Bcc:"), + hdrs, _("_Bcc:"), _("Enter the addresses that will receive a carbon copy of " "the message without appearing in the recipient list of " "the message.")); @@ -612,7 +615,7 @@ create_headers (EMsgComposerHdrs *hdrs) /* * Post-To */ - priv->post_to.label = gtk_button_new_with_label (_("Post To:")); + priv->post_to.label = gtk_button_new_with_mnemonic (_("_Post To:")); GTK_OBJECT_UNSET_FLAGS (priv->post_to.label, GTK_CAN_FOCUS); g_signal_connect (priv->post_to.label, "clicked", G_CALLBACK (post_browser_clicked_cb), hdrs); @@ -621,6 +624,10 @@ create_headers (EMsgComposerHdrs *hdrs) NULL); priv->post_to.entry = gtk_entry_new (); + a11y = gtk_widget_get_accessible (priv->post_to.entry); + if (a11y != NULL) { + atk_object_set_name (a11y, _("Post To:")); + } g_signal_connect(priv->post_to.entry, "changed", G_CALLBACK (post_entry_changed_cb), hdrs); } diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index ca5af45fed..921386159e 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2093,12 +2093,14 @@ setup_signatures_menu (EMsgComposer *composer) EIterator *it; hbox = e_msg_composer_hdrs_get_from_hbox (E_MSG_COMPOSER_HDRS (composer->hdrs)); - - label = gtk_label_new (_("Signature:")); + + label = gtk_label_new_with_mnemonic (_("Si_gnature:")); gtk_widget_show (label); - + composer->sig_menu = (GtkOptionMenu *) gtk_option_menu_new (); - + + gtk_label_set_mnemonic_widget (label, composer->sig_menu); + gtk_box_pack_end_defaults (GTK_BOX (hbox), (GtkWidget *) composer->sig_menu); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, TRUE, 0); hspace = gtk_hbox_new (FALSE, 0); |