summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-10-16 11:54:13 +0000
committerXan Lopez <xan@src.gnome.org>2003-10-16 11:54:13 +0000
commiteafa54de103354de9917b4bbd9af1a975c8a6956 (patch)
treee17417b75a63d0b9d0638779f94796e7ad516c4c
parent24e7de75619096adc9e186e1e332923e6bd50311 (diff)
downloadepiphany-eafa54de103354de9917b4bbd9af1a975c8a6956.tar.gz
Evil marco loves to break my changes, ahem.
* TODO: * embed/downloader-view.c: * embed/mozilla/MozDownload.cpp: Evil marco loves to break my changes, ahem.
-rw-r--r--ChangeLog8
-rw-r--r--TODO3
-rw-r--r--embed/downloader-view.c1
-rw-r--r--embed/mozilla/MozDownload.cpp9
4 files changed, 17 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b91eac995..dce4d1849 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
diff --git a/TODO b/TODO
index da2f89b42..067a0f869 100644
--- a/TODO
+++ b/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();