Revision 3258 src/messageview.c

View differences:

messageview.c
913 913
	gchar *filename = NULL;
914 914
	MsgInfo *msginfo;
915 915
	gchar *src, *dest;
916
	GSList *types;
916
	FileselFileType types[4] = {{NULL, NULL}};
917 917
	gint selected_type = 0;
918 918
	gint result;
919 919
	gboolean all_headers;
......
928 928
	}
929 929
	subst_for_filename(filename);
930 930

  
931
	types = g_slist_append(NULL, _("Original (EML/RFC 822)"));
932
	types = g_slist_append(types, _("Text"));
933
	types = g_slist_append(types, _("Text (UTF-8)"));
931
	types[0].type = _("Original (EML/RFC 822)");
932
	types[0].ext = "eml";
933
	types[1].type = _("Text");
934
	types[1].ext = "txt";
935
	types[2].type = _("Text (UTF-8)");
936
	types[2].ext = "txt";
934 937
	dest = filesel_save_as_type(filename, types, 0, &selected_type);
935
	g_slist_free(types);
936 938

  
937 939
	g_free(filename);
938 940
	if (!dest)

Also available in: Unified diff