2009-12-09 [mir] 3.7.3cvs35
authorMichael Rasmussen <mir@datanom.net>
Wed, 9 Dec 2009 00:51:49 +0000 (00:51 +0000)
committerMichael Rasmussen <mir@datanom.net>
Wed, 9 Dec 2009 00:51:49 +0000 (00:51 +0000)
* src/compose.c
Fix Bug 2072 "template at folder properties is not working"
introduced in cvs24.

ChangeLog
PATCHSETS
configure.ac
src/compose.c

index 7b5ba0c..5685d0a 100644 (file)
--- 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
index 58d4155..77c37ad 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( 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
index b957f11..e678df9 100644 (file)
@@ -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=
 
index 1895082..56b990d 100644 (file)
@@ -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;