talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit b976c1dc267711cee1bfea10ab241b38b2c99a21
parent f7b587992455c454657ffa65cb47a04c066c32c0
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon, 12 May 2014 18:36:43 +0200

Add a mnemonic to compose window's Subject line, allowing alt+s to bring focus there.

Diffstat:
Msrc/compose.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/compose.c b/src/compose.c @@ -7696,7 +7696,7 @@ static Compose *compose_create(PrefsAccount *account, gtk_container_set_border_width(GTK_CONTAINER(subject), 0); gtk_widget_show(subject); - label = gtk_label_new(_("Subject:")); + label = gtk_label_new_with_mnemonic(_("Subject:")); gtk_box_pack_start(GTK_BOX(subject), label, FALSE, FALSE, 0); gtk_widget_show(label); @@ -7708,6 +7708,7 @@ static Compose *compose_create(PrefsAccount *account, gtk_box_pack_start(GTK_BOX(subject), subject_entry, TRUE, TRUE, 0); g_signal_connect_after(G_OBJECT(subject_entry), "grab_focus", G_CALLBACK(compose_grab_focus_cb), compose); + gtk_label_set_mnemonic_widget(GTK_LABEL(label), subject_entry); gtk_widget_show(subject_entry); compose->subject_entry = subject_entry; gtk_container_add(GTK_CONTAINER(subject_frame), subject);