diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-05-21 09:03:41 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-05-21 09:03:41 +0000 |
commit | a3484d5c29988bd7af037fc59a9950ffebf8a053 (patch) | |
tree | ce19024e832b6d2a861b5d6882131b69fd32402e /src/messageview.c | |
parent | ffd8eff6b95428e03018e141e01651c3e258c3bb (diff) |
filesel: automatically modify file extension when file type is changed.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3258 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/messageview.c')
-rw-r--r-- | src/messageview.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/messageview.c b/src/messageview.c index 0ccff0de..d5428d94 100644 --- a/src/messageview.c +++ b/src/messageview.c @@ -913,7 +913,7 @@ void messageview_save_as(MessageView *messageview) gchar *filename = NULL; MsgInfo *msginfo; gchar *src, *dest; - GSList *types; + FileselFileType types[4] = {{NULL, NULL}}; gint selected_type = 0; gint result; gboolean all_headers; @@ -928,11 +928,13 @@ void messageview_save_as(MessageView *messageview) } subst_for_filename(filename); - types = g_slist_append(NULL, _("Original (EML/RFC 822)")); - types = g_slist_append(types, _("Text")); - types = g_slist_append(types, _("Text (UTF-8)")); + types[0].type = _("Original (EML/RFC 822)"); + types[0].ext = "eml"; + types[1].type = _("Text"); + types[1].ext = "txt"; + types[2].type = _("Text (UTF-8)"); + types[2].ext = "txt"; dest = filesel_save_as_type(filename, types, 0, &selected_type); - g_slist_free(types); g_free(filename); if (!dest) |