image_viewer_show_mimepart(): use procmime_mimeinfo_get_parameter() to get the file...
authorPaul Mangan <paul@claws-mail.org>
Mon, 24 Nov 2003 09:40:28 +0000 (09:40 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 24 Nov 2003 09:40:28 +0000 (09:40 +0000)
ChangeLog.claws
configure.ac
src/plugins/image_viewer/viewer.c

index 370b58c..bbddc3a 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-24 [paul]      0.9.6claws90
+
+       * src/plugins/image_viewer/viewer.c
+               image_viewer_show_mimepart(): 
+               use procmime_mimeinfo_get_parameter() to get the file name
+
 2003-11-24 [paul]      0.9.6claws89
 
        * src/textview.c
index c3c98d8..6fa4f8a 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=89
+EXTRA_VERSION=90
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 77359b8..47554f1 100644 (file)
@@ -214,7 +214,8 @@ static void image_viewer_show_mimepart(MimeViewer *_mimeviewer, const gchar *fil
        if (imageviewerprefs.display_img)
                image_viewer_load_image(imageviewer);
        else {
-               gtk_label_set_text(GTK_LABEL(imageviewer->filename), mimeinfo->filename);
+               gtk_label_set_text(GTK_LABEL(imageviewer->filename),
+                                  procmime_mimeinfo_get_parameter(mimeinfo, "name"));
                gtk_label_set_text(GTK_LABEL(imageviewer->filesize), to_human_readable(mimeinfo->length));
                gtk_label_set_text(GTK_LABEL(imageviewer->content_type), mimeinfo->subtype);
        }