sync with sylpheed 0.6.6cvs1
authorPaul Mangan <paul@claws-mail.org>
Mon, 17 Dec 2001 07:08:39 +0000 (07:08 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 17 Dec 2001 07:08:39 +0000 (07:08 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
configure.in
src/compose.c
src/prefs_template.c
src/template.c

index 2c8e903617cab1f6318f9817d2d367041ffeb5c6..3df96bdb7d6c5e22d4f9659336555fb08439250f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2001-12-16
+
+       * src/compose.c: compose_template_apply()
+         src/prefs_template.c: prefs_template_clist_set_row()
+         src/template.c: template_write_config(): don't replace To: and
+         Subject: entry in composition window if they are empty.
+
+2001-12-16
+
+       * version 0.6.6
+
+2001-12-15
+
+       * src/folderview.c: folderview_drag_motion_cb(): fixed a DnD bug.
+       * src/ldif.c: ldif_get_line(): ignore CR.
+       * src/mimeview.c: mimeview_show_message(): search also text/html
+         for first text part.
+
 2001-12-14
 
        * src/prefs_account.c: prefs_account_save_config_all(): fixed a bug
 2001-12-14
 
        * src/prefs_account.c: prefs_account_save_config_all(): fixed a bug
index 0a17057cd2f8109f43ee7816fb2fb6b915baa7c0..030a55c14ef191243d478b3df95741421d012051 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-17 [paul]      0.6.6claws2
+
+       * sync with sylpheed 0.6.6cvs1
+               see ChangeLog entry 2001-12-16
+
 2000-12-17 [alfons]    0.6.6claws1
 
        * src/filtering.c
 2000-12-17 [alfons]    0.6.6claws1
 
        * src/filtering.c
                update for last minute sync
        * po/de.po
                updated by Jens Oberender
                update for last minute sync
        * po/de.po
                updated by Jens Oberender
+       * po/pt_BR.po
+               updated by Fabio Junior Beneditto
 
        * src/prefs_common.[ch]
        * src/undo.c
                number of undo levels is user configurable
                (squeeze it into the release in the dying
 
        * src/prefs_common.[ch]
        * src/undo.c
                number of undo levels is user configurable
                (squeeze it into the release in the dying
-               moments)        
+               moments) Submitted by Jens Oberender    
 
 2001-12-15 [melvin]
 
 
 2001-12-15 [melvin]
 
index 4ed14fb6204579250595d08a6a92840ff94a1ffd..5a702a4489312a419be803aeee0cfbf9e0cb46a2 100644 (file)
@@ -1,3 +1,21 @@
+2001-12-16
+
+       * src/compose.c: compose_template_apply()
+         src/prefs_template.c: prefs_template_clist_set_row()
+         src/template.c: template_write_config(): ¥á¥Ã¥»¡¼¥¸ºîÀ®¥¦¥£¥ó¥É¥¦
+         ¤Î To: ¤È Subject: ¥¨¥ó¥È¥ê¤¬¶õ¤Î¾ì¹ç¤ÏÃÖ¤­´¹¤¨¤Ê¤¤¤è¤¦¤Ë¤·¤¿¡£
+
+2001-12-16
+
+       * version 0.6.6
+
+2001-12-15
+
+       * src/folderview.c: folderview_drag_motion_cb(): DnD ¤Î¥Ð¥°¤ò½¤Àµ¡£
+       * src/ldif.c: ldif_get_line(): CR ¤ò̵»ë¡£
+       * src/mimeview.c: mimeview_show_message(): ºÇ½é¤Î¥Æ¥­¥¹¥È¥Ñ¡¼¥È¤È
+         ¤·¤Æ text/html ¤âõ¤¹¤è¤¦¤Ë¤·¤¿¡£
+
 2001-12-14
 
        * src/prefs_account.c: prefs_account_save_config_all(): account_list
 2001-12-14
 
        * src/prefs_account.c: prefs_account_save_config_all(): account_list
index 1def5dfe31fb0916d26157b9c59addd065e3aead..a258fcca7db3604b56aacb378935f238654181bc 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws1
+EXTRA_VERSION=claws2
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 1e098be9d0c78de0af5bc3b0d4271dc5bf7df6ad..10bb92e5465c871f5633d63512458063b2f5a939 100644 (file)
@@ -4737,10 +4737,10 @@ static void compose_template_apply(Compose *compose, Template *tmpl)
 
        gtk_stext_freeze(GTK_STEXT(compose->text));
         
 
        gtk_stext_freeze(GTK_STEXT(compose->text));
         
-       if (tmpl->subject)
+       if (tmpl->subject && *tmpl->subject != '\0')
                gtk_entry_set_text(GTK_ENTRY(compose->subject_entry),
                                   tmpl->subject);
                gtk_entry_set_text(GTK_ENTRY(compose->subject_entry),
                                   tmpl->subject);
-       if (tmpl->to)
+       if (tmpl->to && *tmpl->to != '\0')
                compose_entry_append(compose, tmpl->to, COMPOSE_TO);
 
        if (compose->replyinfo == NULL) {
                compose_entry_append(compose, tmpl->to, COMPOSE_TO);
 
        if (compose->replyinfo == NULL) {
index f5004b51d869816616edf90ceedd5c79cbc7129c..6e5d726699d2fc3978ae6cb8e2f29165acffa699 100644 (file)
@@ -447,10 +447,19 @@ static gint prefs_template_clist_set_row(gint row)
        name = gtk_editable_get_chars(GTK_EDITABLE(templates.entry_name),
                                      0, -1);
        subject = gtk_editable_get_chars(GTK_EDITABLE(templates.entry_subject),
        name = gtk_editable_get_chars(GTK_EDITABLE(templates.entry_name),
                                      0, -1);
        subject = gtk_editable_get_chars(GTK_EDITABLE(templates.entry_subject),
-                                     0, -1);
+                                        0, -1);
        to = gtk_editable_get_chars(GTK_EDITABLE(templates.entry_to),
                                    0, -1);
 
        to = gtk_editable_get_chars(GTK_EDITABLE(templates.entry_to),
                                    0, -1);
 
+       if (subject && *subject == '\0') {
+               g_free(subject);
+               subject = NULL;
+       }
+       if (to && *to == '\0') {
+               g_free(to);
+               to = NULL;
+       }
+
        tmpl = g_new(Template, 1);
        tmpl->name = name;
        tmpl->subject = subject;
        tmpl = g_new(Template, 1);
        tmpl->name = name;
        tmpl->subject = subject;
index 73c4de6b70a61dbe820a3d65e930ff2ba5bbebab..eafe2cb06c8803796740b14700b707ebe606ebd4 100644 (file)
@@ -194,9 +194,9 @@ void template_write_config(GSList *tmpl_list)
                debug_print(_("%s:%d writing template \"%s\" to %s\n"),
                            __FILE__, __LINE__, tmpl->name, filename);
                fprintf(fp, "Name: %s\n", tmpl->name);
                debug_print(_("%s:%d writing template \"%s\" to %s\n"),
                            __FILE__, __LINE__, tmpl->name, filename);
                fprintf(fp, "Name: %s\n", tmpl->name);
-               if (tmpl->subject)
+               if (tmpl->subject && *tmpl->subject != '\0')
                        fprintf(fp, "Subject: %s\n", tmpl->subject);
                        fprintf(fp, "Subject: %s\n", tmpl->subject);
-               if (tmpl->to)
+               if (tmpl->to && *tmpl->to != '\0')
                        fprintf(fp, "To: %s\n", tmpl->to);
                fputs("\n", fp);
                fwrite(tmpl->value, sizeof(gchar) * strlen(tmpl->value), 1,
                        fprintf(fp, "To: %s\n", tmpl->to);
                fputs("\n", fp);
                fwrite(tmpl->value, sizeof(gchar) * strlen(tmpl->value), 1,