aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{