aboutsummaryrefslogtreecommitdiff
path: root/src/prefs_common_dialog.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-05-14 09:17:37 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-05-14 09:17:37 +0000
commit3b87da252f54406f6ded41f0b45f6f6d7dacc15b (patch)
tree0047c8d4b0f462f50e501448eda5772a6dd7a049 /src/prefs_common_dialog.c
parent0efce4ac1ec396cd9d389a607c2a69bbd505dd8a (diff)
added an option to prefer HTML part in multipart/alternative.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3253 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_common_dialog.c')
-rw-r--r--src/prefs_common_dialog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/prefs_common_dialog.c b/src/prefs_common_dialog.c
index a917fa32..598c6393 100644
--- a/src/prefs_common_dialog.c
+++ b/src/prefs_common_dialog.c
@@ -162,6 +162,7 @@ static struct Message {
GtkWidget *chkbtn_disphdrpane;
GtkWidget *chkbtn_disphdr;
GtkWidget *chkbtn_html;
+ GtkWidget *chkbtn_prefer_html;
GtkWidget *chkbtn_htmlonly;
GtkWidget *spinbtn_linespc;
GtkObject *spinbtn_linespc_adj;
@@ -463,6 +464,8 @@ static PrefsUIData ui_data[] = {
prefs_set_data_from_toggle, prefs_set_toggle},
{"render_html", &message.chkbtn_html,
prefs_set_data_from_toggle, prefs_set_toggle},
+ {"alt_prefer_html", &message.chkbtn_prefer_html,
+ prefs_set_data_from_toggle, prefs_set_toggle},
{"html_only_as_attach", &message.chkbtn_htmlonly,
prefs_set_data_from_toggle, prefs_set_toggle},
{"line_space", &message.spinbtn_linespc,
@@ -1873,6 +1876,7 @@ static GtkWidget *prefs_message_create(void)
GtkWidget *chkbtn_disphdr;
GtkWidget *button_edit_disphdr;
GtkWidget *chkbtn_html;
+ GtkWidget *chkbtn_prefer_html;
GtkWidget *chkbtn_htmlonly;
GtkWidget *hbox_linespc;
GtkWidget *label_linespc;
@@ -1942,6 +1946,8 @@ static GtkWidget *prefs_message_create(void)
PACK_CHECK_BUTTON(vbox2, chkbtn_html,
_("Render HTML messages as text"));
+ PACK_CHECK_BUTTON(vbox2, chkbtn_prefer_html,
+ _("Prefer HTML in multipart/alternative for display"));
PACK_CHECK_BUTTON(vbox2, chkbtn_htmlonly,
_("Treat HTML only messages as attachment"));
@@ -2023,6 +2029,7 @@ static GtkWidget *prefs_message_create(void)
message.chkbtn_disphdrpane = chkbtn_disphdrpane;
message.chkbtn_disphdr = chkbtn_disphdr;
message.chkbtn_html = chkbtn_html;
+ message.chkbtn_prefer_html = chkbtn_prefer_html;
message.chkbtn_htmlonly = chkbtn_htmlonly;
message.spinbtn_linespc = spinbtn_linespc;