Add a mnemonic to compose window's Subject line, allowing alt+s to bring focus there.
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 12 May 2014 16:36:43 +0000 (18:36 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 12 May 2014 16:36:43 +0000 (18:36 +0200)
src/compose.c

index 2306477..cad91a1 100644 (file)
@@ -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);