From 1a2f5add8233f90f93082cc9983452ebfb8fbe15 Mon Sep 17 00:00:00 2001 From: Rob Clews Date: Thu, 16 Jan 2003 21:17:02 +0000 Subject: fix incorrect figures on small files 2003-01-16 Rob Clews * embed/downloader-view.c: fix incorrect figures on small files 2003-01-16 Marco Pesenti Gritti * embed/mozilla/FilePicker.cpp: Api change --- ChangeLog | 8 ++++++++ embed/downloader-view.c | 5 ++++- embed/mozilla/GlobalHistory.cpp | 9 +++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4fd9f2e69..30e879b3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-01-16 Rob Clews + + * embed/downloader-view.c: fix incorrect figures on small files + +2003-01-16 Marco Pesenti Gritti + + * embed/mozilla/FilePicker.cpp: Api change + 2003-01-13 Marco Pesenti Gritti * embed/mozilla/FilePicker.cpp: diff --git a/embed/downloader-view.c b/embed/downloader-view.c index c7cdc2ef6..98868052a 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -511,7 +511,10 @@ downloader_view_set_download_info (DownloaderViewPrivate *priv, } else { - sprintf (buffer, _("Unknown")); + sprintf (buffer, + details->progress > 0 ? + _("00.00") : + _("Unknown")); } gtk_list_store_set (GTK_LIST_STORE (priv->model), iter, diff --git a/embed/mozilla/GlobalHistory.cpp b/embed/mozilla/GlobalHistory.cpp index a559dbc10..054b7a5df 100644 --- a/embed/mozilla/GlobalHistory.cpp +++ b/embed/mozilla/GlobalHistory.cpp @@ -149,6 +149,15 @@ NS_IMETHODIMP MozGlobalHistory::MarkPageAsTyped(const char *url) return NS_ERROR_NOT_IMPLEMENTED; } +/* Described by mozilla.org as a temporary ugly hack. We will never need to + * implement it. It is here to allow compilation. + */ +/* void outputReferrerURL (in string aURL, in string aReferrer); */ +NS_IMETHODIMP MozGlobalHistory::OutputReferrerURL(const char *aURL, const char *aReferrer) +{ + return NS_ERROR_NOT_IMPLEMENTED; +} + NS_DEF_FACTORY (MozGlobalHistory, MozGlobalHistory); nsresult NS_NewGlobalHistoryFactory(nsIFactory** aFactory) -- cgit v1.2.3