diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | embed/downloader-view.c | 1 | ||||
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 9 |
4 files changed, 17 insertions, 4 deletions
@@ -1,3 +1,11 @@ +2003-10-16 Xan Lopez <xan@masilla.org> + + * TODO: + * embed/downloader-view.c: + * embed/mozilla/MozDownload.cpp: + + Evil marco loves to break my changes, ahem. + 2003-10-16 Marco Pesenti Gritti <marco@gnome.org> * TODO: @@ -17,7 +17,4 @@ are destroyed at right time. - Deal with the case where total size is unknown (we need special rendering for progress too I guess) - Initialize progress values when starting the download -- Fix at least the Stop button. Probably we should also remove the download -from list in that case. - Need a way to do downloads without view, for favicons -- Maybe drop details crap if we get the ok from usability bigs diff --git a/embed/downloader-view.c b/embed/downloader-view.c index 8f66b8c4e..eee883bb3 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -73,7 +73,6 @@ typedef struct gboolean is_paused; gboolean can_abort; gboolean can_open; - gboolean can_pause; DownloaderViewPrivate *priv; } ControlsInfo; diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index 6839e870d..b5ecb97b9 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -300,6 +300,15 @@ MozDownload::OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress) { + PRInt64 now = PR_Now (); + + if ((now - mLastUpdate < mInterval) && + (aMaxTotalProgress != -1) && + (aCurTotalProgress < aMaxTotalProgress)) + return NS_OK; + + mLastUpdate = now; + if (mUserCanceled) { if (mHelperAppLauncher) mHelperAppLauncher->Cancel(); |