* src/mimeview.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 19 Jan 2003 17:57:42 +0000 (17:57 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 19 Jan 2003 17:57:42 +0000 (17:57 +0000)
mimeview_save_as(): we might as well show the file name for
the single case "Save As" too

ChangeLog.claws
configure.ac
src/mimeview.c

index 7b2504d..b845297 100644 (file)
@@ -1,3 +1,9 @@
+2003-01-19 [alfons]    0.8.8claws122
+               
+       * src/mimeview.c
+               mimeview_save_as(): we might as well show the file name for
+               the single case "Save As" too
+
 2003-01-19 [alfons]    0.8.8claws121
 
        * src/crash.c
index 95bb77b..701a2cc 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws121
+EXTRA_VERSION=claws122
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index cb8db9c..8bf07a9 100644 (file)
@@ -874,6 +874,7 @@ static void mimeview_save_as(MimeView *mimeview)
        gchar *filename;
        gchar *defname = NULL;
        MimeInfo *partinfo;
+       gchar *res;
 
        if (!mimeview->opened) return;
        if (!mimeview->file) return;
@@ -893,10 +894,11 @@ static void mimeview_save_as(MimeView *mimeview)
        if (!filename) return;
        if (is_file_exist(filename)) {
                AlertValue aval;
-
-               aval = alertpanel(_("Overwrite"),
-                                 _("Overwrite existing file?"),
-                                 _("OK"), _("Cancel"), NULL);
+               res = g_strdup_printf(_("Overwrite existing file '%s'?"),
+                                     filename);
+               aval = alertpanel(_("Overwrite"), res, _("OK"), 
+                                 _("Cancel"), NULL);
+               g_free(res);                                      
                if (G_ALERTDEFAULT != aval) return;
        }