sync with sylpheed 0.6.3cvs2
authorPaul Mangan <paul@claws-mail.org>
Wed, 10 Oct 2001 07:56:03 +0000 (07:56 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 10 Oct 2001 07:56:03 +0000 (07:56 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
INSTALL
INSTALL.jp
configure.in
src/codeconv.c
src/codeconv.h
src/summaryview.c
src/utils.c

index f164168..e1e24ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,16 @@
+2001-10-10
+
+       * src/utils.c: to_human_readable(): made a bit of optimization.
+       * src/summaryview.c: summary_delete(): fixed a focus problem.
+
 2001-10-09
 
        * updated some autotool scripts.
+       * src/codeconv.c: conv_encode_header(): fixed a bug that caused
+         infinite loop when failed to convert encoding.
+       * src/codeconv.[ch]: a fix for older version of libjconv
+         (jconv_info_get_current_codeset() returned "EUCJP" instead of
+         "EUC-JP".
 
 2001-10-08
 
index 8d7cde9..01c16bc 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-10 [paul]      0.6.3claws6
+
+       * sync with sylpheed 0.6.3cvs2
+               see ChangeLog entries 2001-10-09 and 2001-10-10
+
 2001-10-10 [darko]     0.6.3.claws5
 
        * src/gtkstext.c
index d0ec4ac..83113c1 100644 (file)
@@ -1,6 +1,13 @@
+2001-10-10
+
+       * src/utils.c: to_human_readable(): ¾¯¤·ºÇŬ²½¡£
+       * src/summaryview.c: summary_delete(): ¥Õ¥©¡¼¥«¥¹¤ÎÌäÂê¤ò½¤Àµ¡£
+
 2001-10-09
 
        * ¤¤¤¯¤Ä¤«¤Î autotool ¥¹¥¯¥ê¥×¥È¤ò¹¹¿·¡£
+       * src/codeconv.c: conv_encode_header(): ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ÎÊÑ´¹¤Ë
+         ¼ºÇÔ¤·¤¿¾ì¹ç¤Ë̵¸Â¥ë¡¼¥×¤òµ¯¤³¤¹¥Ð¥°¤ò½¤Àµ¡£
 
 2001-10-08
 
diff --git a/INSTALL b/INSTALL
index 0b6ba5d..53c9471 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -101,8 +101,8 @@ If you want to enable SSL support, append the option
 If you want to enable IPv6 support, append the option
 --enable-ipv6 after ./configure.
 
-If you want to enable GnuPG support, you need GPGME 0.2.1 or later, and
-GnuPG 1.0.4f or later. You can get them from the following location:
+If you want to enable GnuPG support, you need GPGME 0.2.3 or later, and
+GnuPG 1.0.6 or later. You can get them from the following location:
 
   ftp://ftp.gnupg.org/pub/gcrypt/alpha/gpgme/
   ftp://ftp.gnupg.org/pub/gcrypt/devel/
index d8dc0ed..7adcbce 100644 (file)
@@ -101,7 +101,7 @@ SSL 
 IPv6 Âбþ¤òÍ­¸ú¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢ ./configure ¤Î¸å¤Ë
 --enable-ipv6 ¥ª¥×¥·¥ç¥ó¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£
 
-GnuPG Âбþ¤òÍ­¸ú¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢ GPGME 0.2.1 °Ê¹ß¤È GnuPG 1.0.4f °Ê¹ß¤¬
+GnuPG Âбþ¤òÍ­¸ú¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢ GPGME 0.2.3 °Ê¹ß¤È GnuPG 1.0.6 °Ê¹ß¤¬
 É¬ÍפǤ¹¡£°Ê²¼¤Î¾ì½ê¤«¤é¼èÆÀ¤Ç¤­¤Þ¤¹:
 
   ftp://ftp.gnupg.org/pub/gcrypt/alpha/gpgme/
index 1f92826..b3f3451 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws5
+EXTRA_VERSION=claws6
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index becdccf..2d1d11d 100644 (file)
@@ -379,7 +379,7 @@ gchar *conv_codeset_strdup(const gchar *inbuf,
 #else /* !HAVE_LIBJCONV */
        if (src_codeset) {
                if (!strcasecmp(src_codeset, CS_EUC_JP) ||
-                   !strcasecmp(src_codeset, "EUCJP"))
+                   !strcasecmp(src_codeset, CS_EUCJP))
                        src_charset = C_EUC_JP;
                else if (!strcasecmp(src_codeset, CS_SHIFT_JIS) ||
                         !strcasecmp(src_codeset, "SHIFT-JIS") ||
@@ -435,7 +435,7 @@ CodeConvFunc conv_get_code_conv_func(const gchar *charset)
                 !strcasecmp(charset, "X-SJIS"))
                code_conv = conv_sjistodisp;
        else if (!strcasecmp(charset, CS_EUC_JP) ||
-                !strcasecmp(charset, "EUCJP"))
+                !strcasecmp(charset, CS_EUCJP))
                code_conv = conv_euctodisp;
        else
                code_conv = conv_noconv;
@@ -467,6 +467,7 @@ static const struct {
        {C_ISO_2022_JP,         CS_ISO_2022_JP},
        {C_ISO_2022_JP_2,       CS_ISO_2022_JP_2},
        {C_EUC_JP,              CS_EUC_JP},
+       {C_EUC_JP,              CS_EUCJP},
        {C_SHIFT_JIS,           CS_SHIFT_JIS},
        {C_ISO_2022_KR,         CS_ISO_2022_KR},
        {C_EUC_KR,              CS_EUC_KR},
@@ -883,6 +884,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
                                    != 0) {
                                        g_warning("can't convert\n");
                                        tmpp[0] = '\0';
+                                       wtmpp++;
                                        continue;
                                }
                                if (!str_ascii) {
index 5ff3dcc..5186977 100644 (file)
@@ -96,6 +96,7 @@ struct _CodeConverter
 #define CS_ISO_2022_JP         "ISO-2022-JP"
 #define CS_ISO_2022_JP_2       "ISO-2022-JP-2"
 #define CS_EUC_JP              "EUC-JP"
+#define CS_EUCJP               "EUCJP"
 #define CS_SHIFT_JIS           "Shift_JIS"
 #define CS_ISO_2022_KR         "ISO-2022-KR"
 #define CS_EUC_KR              "EUC-KR"
index 88a3b64..55f9bcc 100644 (file)
@@ -2698,7 +2698,7 @@ void summary_delete(SummaryView *summaryview)
        GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
        FolderItem *item = summaryview->folder_item;
        GList *cur;
-       GtkCTreeNode *dsp_last, *sel_last;
+       GtkCTreeNode *dsp_last, *sel_last = NULL;
 
        if (!item || item->folder->type == F_NEWS) return;
 
@@ -2716,16 +2716,15 @@ void summary_delete(SummaryView *summaryview)
 
        /* next code sets current row focus right. if the last selection
         * is also the last displayed row, we need to scroll backwards. 
-        * exception: if the last displayed row is an uncollapsed node,
+        * exception: if the last displayed row has children,
         * we don't scroll back. */
        dsp_last = gtk_ctree_node_nth(ctree, GTK_CLIST(ctree)->rows - 1);
-       sel_last = NULL;
        for (cur = GTK_CLIST(ctree)->selection; cur != NULL; cur = cur->next) {
                sel_last = GTK_CTREE_NODE(cur->data);
-               summary_delete_row(summaryview, GTK_CTREE_NODE(sel_last));
+               summary_delete_row(summaryview, sel_last);
        }
 
-       if (dsp_last == sel_last && GTK_CTREE_ROW(sel_last)->expanded) 
+       if (dsp_last == sel_last && !GTK_CTREE_ROW(sel_last)->children)
                summary_step(summaryview, GTK_SCROLL_STEP_BACKWARD);
        else    
                summary_step(summaryview, GTK_SCROLL_STEP_FORWARD);
index fa1fa5d..45dad27 100644 (file)
@@ -136,24 +136,21 @@ gchar *itos(gint n)
 gchar *to_human_readable(off_t size)
 {
        static gchar str[10];
-       gint count;
-       guint32 div = 1;
+       gint shift;
 
-       for (count = 0; count < 3; count++) {
-               if (size / div < 1024)
+       for (shift = 0; shift < 30; shift += 10) {
+               if (size >> shift < 1024)
                        break;
-               else
-                       div *= 1024;
        }
 
-       switch (count) {
-       case 0: g_snprintf(str, sizeof(str), "%dB",    (gint)size);   break;
-       case 1: g_snprintf(str, sizeof(str), "%.1fKB", (gfloat)size / div);
+       switch (shift) {
+       case 0 : g_snprintf(str, sizeof(str), "%dB",    (gint)size);   break;
+       case 10: g_snprintf(str, sizeof(str), "%.1fKB", (gfloat)size / (1 << 10));
                break;
-       case 2: g_snprintf(str, sizeof(str), "%.2fMB", (gfloat)size / div);
+       case 20: g_snprintf(str, sizeof(str), "%.2fMB", (gfloat)size / (1 << 20));
                break;
        default:
-               g_snprintf(str, sizeof(str), "%.2fGB", (gfloat)size / div);
+               g_snprintf(str, sizeof(str), "%.2fGB", (gfloat)size / (1 << 30));
                break;
        }