* src/textview.c
authorLuke Plant <L.Plant.98@cantab.net>
Sun, 14 Dec 2003 01:06:07 +0000 (01:06 +0000)
committerLuke Plant <L.Plant.98@cantab.net>
Sun, 14 Dec 2003 01:06:07 +0000 (01:06 +0000)
* src/mimeview.c
o use parameter "filename" instead of "name" in a couple of
  places for correctness

src/mimeview.c
src/textview.c

index 4d1f3d0..7a89249 100644 (file)
@@ -531,7 +531,7 @@ static MimeViewer *get_viewer_for_mimeinfo(MimeView *mimeview, MimeInfo *partinf
             (!g_strcasecmp(partinfo->subtype, "octet-stream"))) {
                const gchar *filename;
 
-               filename = procmime_mimeinfo_get_parameter(partinfo, "name");
+               filename = procmime_mimeinfo_get_parameter(partinfo, "filename");
                if (filename != NULL)
                        content_type = procmime_get_mime_type(filename);
        } else {
index 50dd82d..0e5cc0a 100644 (file)
@@ -436,9 +436,9 @@ static void textview_add_part(TextView *textview, MimeInfo *mimeinfo)
 
        gtk_stext_freeze(text);
 
-       if (g_hash_table_lookup(mimeinfo->parameters, "name") != NULL)
+       if (g_hash_table_lookup(mimeinfo->parameters, "filename") != NULL)
                g_snprintf(buf, sizeof(buf), "\n[%s  %s/%s (%d bytes)]\n",
-                          (gchar *) g_hash_table_lookup(mimeinfo->parameters, "name"),
+                          (gchar *) g_hash_table_lookup(mimeinfo->parameters, "filename"),
                           procmime_get_type_str(mimeinfo->type),
                           mimeinfo->subtype, mimeinfo->length);
        else