aboutsummaryrefslogtreecommitdiff
path: root/src/mimeview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-13 09:42:26 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-13 09:42:26 +0000
commit70a2615d616d6c29275cfe836678c03b78f802f4 (patch)
treef55becc5b8e2baf0e904332aa87d526823a5f868 /src/mimeview.c
parent3083452938b15891e80313f14be554dd22ce933e (diff)
made the file size of attachments more accurate, and human-readable.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@427 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mimeview.c')
-rw-r--r--src/mimeview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mimeview.c b/src/mimeview.c
index 5b0621bf..6c2d0ee6 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -497,7 +497,7 @@ static gboolean mimeview_append_part(MimeView *mimeview, MimeInfo *partinfo,
gchar *name;
mime_type = partinfo->content_type ? partinfo->content_type : "";
- size = to_human_readable(partinfo->size);
+ size = to_human_readable(partinfo->content_size);
name = get_part_name(partinfo);
gtk_tree_store_append(mimeview->store, iter, parent);
@@ -621,10 +621,10 @@ static void mimeview_show_mime_part(MimeView *mimeview, MimeInfo *partinfo)
g_snprintf(buf, sizeof(buf), "[%s %s (%d bytes)]\n\n",
partinfo->filename ? partinfo->filename :
partinfo->name,
- partinfo->content_type, partinfo->size);
+ partinfo->content_type, partinfo->content_size);
else
g_snprintf(buf, sizeof(buf), "[%s (%d bytes)]\n\n",
- partinfo->content_type, partinfo->size);
+ partinfo->content_type, partinfo->content_size);
gtk_text_buffer_insert(buffer, &iter, buf, -1);
vbbox = gtk_vbutton_box_new();