From: Andrej Kacian Date: Mon, 12 May 2014 16:36:43 +0000 (+0200) Subject: Add a mnemonic to compose window's Subject line, allowing alt+s to bring focus there. X-Git-Tag: 3.10.0~56 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=b976c1dc267711cee1bfea10ab241b38b2c99a21 Add a mnemonic to compose window's Subject line, allowing alt+s to bring focus there. --- diff --git a/src/compose.c b/src/compose.c index 2306477f7..cad91a1ae 100644 --- 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);