talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 27646e8b7fb5c790b1810139361a11d8cc9010fa
parent aabde6375127a203126459acb0c5f64009b81987
Author: Michael Rasmussen <mir@datanom.net>
Date:   Wed,  9 Dec 2009 00:51:49 +0000

2009-12-09 [mir]	3.7.3cvs35

	* src/compose.c
	Fix Bug 2072 "template at folder properties is not working"
	introduced in cvs24.

Diffstat:
MChangeLog | 6++++++
MPATCHSETS | 1+
Mconfigure.ac | 2+-
Msrc/compose.c | 8+++++++-
4 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2009-12-09 [mir] 3.7.3cvs35 + + * src/compose.c + Fix Bug 2072 "template at folder properties is not working" + introduced in cvs24. + 2009-12-08 [pawel] 3.7.3cvs34 * src/compose.c diff --git a/PATCHSETS b/PATCHSETS @@ -3908,3 +3908,4 @@ ( cvs diff -u -r 1.94.2.205 -r 1.94.2.206 src/messageview.c; cvs diff -u -r 1.1.2.12 -r 1.1.2.13 src/uri_opener.c; ) > 3.7.3cvs32.patchset ( cvs diff -u -r 1.94.2.206 -r 1.94.2.207 src/messageview.c; ) > 3.7.3cvs33.patchset ( cvs diff -u -r 1.382.2.531 -r 1.382.2.532 src/compose.c; ) > 3.7.3cvs34.patchset +( cvs diff -u -r 1.382.2.532 -r 1.382.2.533 src/compose.c; ) > 3.7.3cvs35.patchset diff --git a/configure.ac b/configure.ac @@ -12,7 +12,7 @@ MINOR_VERSION=7 MICRO_VERSION=3 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=34 +EXTRA_VERSION=35 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/compose.c b/src/compose.c @@ -1115,6 +1115,7 @@ Compose *compose_generic_new(PrefsAccount *account, const gchar *mailto, FolderI g_free(subject); g_free(tmp); + mfield = SUBJECT_FIELD_PRESENT; } if ( body_format @@ -1146,6 +1147,7 @@ Compose *compose_generic_new(PrefsAccount *account, const gchar *mailto, FolderI if (compose->gtkaspell->check_while_typing) gtkaspell_highlight_all(compose->gtkaspell); #endif + mfield = BODY_FIELD_PRESENT; } } @@ -1179,7 +1181,11 @@ Compose *compose_generic_new(PrefsAccount *account, const gchar *mailto, FolderI gtk_widget_grab_focus(compose->header_last->entry); break; case TO_FIELD_PRESENT: - buf = g_strdup(""); + buf = gtk_editable_get_chars(GTK_EDITABLE(compose->subject_entry), 0, -1); + /* + * buf will always contain an allocated string, + * either empty or populated with some text + */ gtk_entry_set_text(GTK_ENTRY(compose->subject_entry), buf); gtk_widget_grab_focus(compose->subject_entry); break;