[Commits] compose.c 1.382.2.602 1.382.2.603
wwp at claws-mail.org
wwp at claws-mail.org
Sat Jun 2 11:00:30 CEST 2012
Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv21933/src
Modified Files:
Tag: gtk2
compose.c
Log Message:
2012-06-02 [wwp] 3.8.0cvs51
* src/compose.c
Fix bug 2620: shift+tab from subject field not working.
Index: compose.c
===================================================================
RCS file: /home/claws-mail/claws/src/compose.c,v
retrieving revision 1.382.2.602
retrieving revision 1.382.2.603
diff -u -d -r1.382.2.602 -r1.382.2.603
--- compose.c 2 Jun 2012 08:57:09 -0000 1.382.2.602
+++ compose.c 2 Jun 2012 09:00:28 -0000 1.382.2.603
@@ -501,6 +501,10 @@
GdkDragContext *drag_context,
gint x, gint y,
guint time, gpointer user_data);
+static gboolean completion_set_focus_to_subject
+ (GtkWidget *widget,
+ GdkEventKey *event,
+ Compose *user_data);
static void text_inserted (GtkTextBuffer *buffer,
GtkTextIter *iter,
@@ -7635,6 +7639,9 @@
g_signal_connect(G_OBJECT(text), "drag-drop",
G_CALLBACK(compose_drag_drop),
compose);
+ g_signal_connect(G_OBJECT(text), "key-press-event",
+ G_CALLBACK(completion_set_focus_to_subject),
+ compose);
gtk_widget_show_all(vbox);
/* pane between attach clist and text */
@@ -10835,6 +10842,21 @@
return TRUE;
}
+static gboolean completion_set_focus_to_subject
+ (GtkWidget *widget,
+ GdkEventKey *event,
+ Compose *compose)
+{
+ cm_return_val_if_fail(compose != NULL, FALSE);
+
+ /* make backtab move to subject field */
+ if(event->keyval == GDK_KEY_ISO_Left_Tab) {
+ gtk_widget_grab_focus(compose->subject_entry);
+ return TRUE;
+ }
+ return FALSE;
+}
+
static void compose_insert_drag_received_cb (GtkWidget *widget,
GdkDragContext *drag_context,
gint x,
More information about the Commits
mailing list