From fbf788d083531c1f2677eb22041e578c7280fe3a Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 7 Nov 2005 06:39:56 +0000 Subject: moved the location of fallback_encoding. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@716 ee746299-78ed-0310-b773-934348b2243d --- libsylph/prefs_common.c | 5 ++--- libsylph/prefs_common.h | 2 +- libsylph/procmime.c | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'libsylph') diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c index c8a4f1c8..1c90fd7e 100644 --- a/libsylph/prefs_common.c +++ b/libsylph/prefs_common.c @@ -62,7 +62,7 @@ static PrefParam param[] = { {"save_message", "TRUE", &prefs_common.savemsg, P_BOOL}, {"filter_sent_message", "FALSE", &prefs_common.filter_sent, P_BOOL}, - {"outgoing_charset", CS_AUTO, &prefs_common.outgoing_charset, P_STRING}, + {"outgoing_charset", NULL, &prefs_common.outgoing_charset, P_STRING}, {"encoding_method", "0", &prefs_common.encoding_method, P_ENUM}, {"allow_jisx0201_kana", "FALSE", &prefs_common.allow_jisx0201_kana, @@ -244,8 +244,7 @@ static PrefParam param[] = { {"resize_image", "TRUE", &prefs_common.resize_image, P_BOOL}, {"inline_image", "TRUE", &prefs_common.inline_image, P_BOOL}, - {"fallback_encoding", CS_AUTO, &prefs_common.fallback_encoding, - P_STRING}, + {"default_encoding", NULL, &prefs_common.default_encoding, P_STRING}, {"show_other_header", "FALSE", &prefs_common.show_other_header, P_BOOL}, diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h index f3c3ce9d..c6b85b1f 100644 --- a/libsylph/prefs_common.h +++ b/libsylph/prefs_common.h @@ -173,7 +173,7 @@ struct _PrefsCommon gboolean inline_image; gchar *force_charset; - gchar *fallback_encoding; + gchar *default_encoding; gboolean show_other_header; GSList *disphdr_list; diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 314a4eac..da7e8b1f 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -783,7 +783,7 @@ FILE *procmime_get_text_content(MimeInfo *mimeinfo, FILE *infp, src_encoding = prefs_common.force_charset ? prefs_common.force_charset : mimeinfo->charset ? mimeinfo->charset - : prefs_common.fallback_encoding; + : prefs_common.default_encoding; if (mimeinfo->mime_type == MIME_TEXT) { while (fgets(buf, sizeof(buf), tmpfp) != NULL) { -- cgit v1.2.3