aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-13 22:31:59 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-13 22:31:59 +0800
commite853d7394fde1468f5e20107f28cdc07b37c042b (patch)
tree328f041844028a586399d24386eac02c91ef6813 /embed/downloader-view.c
parenta8bb2fb64f68a142301f41354eff6132e389d9d7 (diff)
downloadgsoc2013-epiphany-e853d7394fde1468f5e20107f28cdc07b37c042b.tar
gsoc2013-epiphany-e853d7394fde1468f5e20107f28cdc07b37c042b.tar.gz
gsoc2013-epiphany-e853d7394fde1468f5e20107f28cdc07b37c042b.tar.bz2
gsoc2013-epiphany-e853d7394fde1468f5e20107f28cdc07b37c042b.tar.lz
gsoc2013-epiphany-e853d7394fde1468f5e20107f28cdc07b37c042b.tar.xz
gsoc2013-epiphany-e853d7394fde1468f5e20107f28cdc07b37c042b.tar.zst
gsoc2013-epiphany-e853d7394fde1468f5e20107f28cdc07b37c042b.zip
Don't display (guint64)-1 as filesize if it's not known yet. Part of bug
2005-08-13 Christian Persch <chpe@cvs.gnome.org> * embed/downloader-view.c: (update_download_row): Don't display (guint64)-1 as filesize if it's not known yet. Part of bug #313215.
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r--embed/downloader-view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 9ec3ac2da..300901853 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -406,7 +406,7 @@ update_download_row (DownloaderView *dv, EphyDownload *download)
name = ephy_download_get_name (download);
- if (total != -1)
+ if (total != -1 && current != -1)
{
char *total_progress;
@@ -416,10 +416,14 @@ update_download_row (DownloaderView *dv, EphyDownload *download)
cur_progress, total_progress);
g_free (total_progress);
}
- else
+ else if (current != -1)
{
file = g_strdup_printf ("%s\n%s", name, cur_progress);
}
+ else
+ {
+ file = g_strdup_printf ("%s\n%s", name, _("Unknown"));
+ }
if (remaining_secs < 0)
{