aboutsummaryrefslogtreecommitdiff
path: root/src/mimeview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-02-25 08:08:49 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-02-25 08:08:49 +0000
commit19a51bbe411d98970bcebcec1e559d60b02899b0 (patch)
treeb5bf6838fa018a4bf6029c9bc0816769fc765f0e /src/mimeview.c
parent3bc07b606590d43c4e84cc0182941d30f8c54e67 (diff)
replaced GtkFileSelection with GtkFileChooserDialog.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@128 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mimeview.c')
-rw-r--r--src/mimeview.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mimeview.c b/src/mimeview.c
index 517778dc..8f1178dd 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -801,20 +801,14 @@ static void mimeview_save_as(MimeView *mimeview)
subst_for_filename(defname);
}
- filename = filesel_select_file(_("Save as"), defname);
+ filename = filesel_save_as(defname);
if (!filename) return;
- if (is_file_exist(filename)) {
- AlertValue aval;
-
- aval = alertpanel(_("Overwrite"),
- _("Overwrite existing file?"),
- GTK_STOCK_OK, GTK_STOCK_CANCEL, NULL);
- if (G_ALERTDEFAULT != aval) return;
- }
if (procmime_get_part(filename, mimeview->file, partinfo) < 0)
alertpanel_error
(_("Can't save the part of multipart message."));
+
+ g_free(filename);
}
static void mimeview_launch(MimeView *mimeview)