[Commits] compose.c 1.382.2.618 1.382.2.619
ticho at claws-mail.org
ticho at claws-mail.org
Wed Dec 12 13:43:54 CET 2012
Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv31503/src
Modified Files:
Tag: gtk2
compose.c
Log Message:
2012-12-12 [ticho] 3.9.0cvs46
* src/compose.c
Move focus to body textview when subject entry is activated
(Enter key pressed) in compose window.
Index: compose.c
===================================================================
RCS file: /home/claws-mail/claws/src/compose.c,v
retrieving revision 1.382.2.618
retrieving revision 1.382.2.619
diff -u -d -r1.382.2.618 -r1.382.2.619
--- compose.c 15 Nov 2012 13:41:05 -0000 1.382.2.618
+++ compose.c 12 Dec 2012 12:43:51 -0000 1.382.2.619
@@ -557,6 +557,7 @@
static void compose_attach_update_label(Compose *compose);
static void compose_set_folder_prefs(Compose *compose, FolderItem *folder,
gboolean respect_default_to);
+static void compose_subject_entry_activated(GtkWidget *widget, gpointer data);
static GtkActionEntry compose_popup_entries[] =
{
@@ -7672,7 +7673,9 @@
G_CALLBACK(compose_popup_menu), compose);
#endif
g_signal_connect(G_OBJECT(subject_entry), "changed",
- G_CALLBACK(compose_changed_cb), compose);
+ G_CALLBACK(compose_changed_cb), compose);
+ g_signal_connect(G_OBJECT(subject_entry), "activate",
+ G_CALLBACK(compose_subject_entry_activated), compose);
/* drag and drop */
gtk_drag_dest_set(text, GTK_DEST_DEFAULT_ALL, compose_mime_types,
@@ -11647,6 +11650,15 @@
}
#endif
+static void compose_subject_entry_activated(GtkWidget *widget, gpointer data)
+{
+ Compose *compose = (Compose *)data;
+
+ cm_return_if_fail(compose != NULL);
+
+ gtk_widget_grab_focus(compose->text);
+}
+
/*
* End of Source.
*/
More information about the Commits
mailing list