[Xfce4-commits] <midori:master> Show at minimum 10% progress when loading
Christian Dywan
noreply at xfce.org
Sun Feb 20 20:14:02 CET 2011
Updating branch refs/heads/master
to c1f592bb75bb7f0979b70e94b1ff7ae8a45711fc (commit)
from a205df3970659d0956c21641d251824da2d7d2b3 (commit)
commit c1f592bb75bb7f0979b70e94b1ff7ae8a45711fc
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Feb 20 20:09:57 2011 +0100
Show at minimum 10% progress when loading
midori/midori-browser.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index d75faa0..4ab1a4b 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -433,6 +433,9 @@ _midori_browser_update_progress (MidoriBrowser* browser,
/* When we are finished, we don't want to *see* progress anymore */
if (midori_view_get_load_status (view) == MIDORI_LOAD_FINISHED)
progress = 0.0;
+ /* When loading we want to see at minimum 10% progress */
+ else
+ progress = CLAMP (progress, 0.1, 1.0);
midori_location_action_set_progress (action, progress);
}
More information about the Xfce4-commits
mailing list