summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-13 14:31:59 +0000
committerChristian Persch <chpe@src.gnome.org>2005-08-13 14:31:59 +0000
commite853d7394fde1468f5e20107f28cdc07b37c042b (patch)
tree328f041844028a586399d24386eac02c91ef6813
parenta8bb2fb64f68a142301f41354eff6132e389d9d7 (diff)
downloadepiphany-e853d7394fde1468f5e20107f28cdc07b37c042b.tar.gz
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.
-rw-r--r--ChangeLog7
-rw-r--r--embed/downloader-view.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5cf35bdab..18bb930ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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.
+
+2005-08-13 Christian Persch <chpe@cvs.gnome.org>
+
* configure.ac:
Better gecko version check.
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)
{