+2011-07-05 [paul] 3.7.9cvs31
+
+ * src/compose.c
+ when using a Compose template, only place the cursor
+ in the body when the cursor symbol, %cursor (%X), is used
+
2011-07-03 [paul] 3.7.9cvs30
* src/main.c
( cvs diff -u -r 1.274.2.325 -r 1.274.2.326 src/mainwindow.c; cvs diff -u -r 1.39.2.60 -r 1.39.2.61 src/mainwindow.h; cvs diff -u -r 1.395.2.428 -r 1.395.2.429 src/summaryview.c; ) > 3.7.9cvs28.patchset
( cvs diff -u -r 1.1.2.83 -r 1.1.2.84 src/wizard.c; ) > 3.7.9cvs29.patchset
( cvs diff -u -r 1.115.2.238 -r 1.115.2.239 src/main.c; ) > 3.7.9cvs30.patchset
+( cvs diff -u -r 1.382.2.576 -r 1.382.2.577 src/compose.c; ) > 3.7.9cvs31.patchset
gchar *mailto_from = NULL;
PrefsAccount *mailto_account = NULL;
MsgInfo* dummyinfo = NULL;
+ gint cursor_pos = -1;
MailField mfield = NO_FIELD_PRESENT;
gchar* buf;
GtkTextMark *mark;
* is therefore created before placing the cursor
*/
case BODY_FIELD_PRESENT:
- gtk_widget_grab_focus(compose->text);
+ cursor_pos = quote_fmt_get_cursor_pos();
+ if (cursor_pos == -1)
+ gtk_widget_grab_focus(compose->header_last->entry);
+ else
+ gtk_widget_grab_focus(compose->text);
break;
}
compose->modified = FALSE;
compose_set_title(compose);
- hooks_invoke(COMPOSE_CREATED_HOOKLIST, compose);
+ hooks_invoke(COMPOSE_CREATED_HOOKLIST, compose);
return compose;
}