From: Christian Dywan Date: Sun, 20 Feb 2011 19:09:57 +0000 (+0100) Subject: Show at minimum 10% progress when loading X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1f592bb75bb7f0979b70e94b1ff7ae8a45711fc;p=midori Show at minimum 10% progress when loading --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index d75faa07..4ab1a4bb 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); }