aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-02-19 15:50:37 +0800
committerXan Lopez <xan@src.gnome.org>2009-02-19 15:50:37 +0800
commit0dc542e6f66143e11d20cd6e3cf45430415c2994 (patch)
tree867070b1366c6d9af112299e169da28f89ea8d9c
parent3bbc37ff26b4c29ce699691edf1035851bfbd171 (diff)
downloadgsoc2013-epiphany-0dc542e6f66143e11d20cd6e3cf45430415c2994.tar
gsoc2013-epiphany-0dc542e6f66143e11d20cd6e3cf45430415c2994.tar.gz
gsoc2013-epiphany-0dc542e6f66143e11d20cd6e3cf45430415c2994.tar.bz2
gsoc2013-epiphany-0dc542e6f66143e11d20cd6e3cf45430415c2994.tar.lz
gsoc2013-epiphany-0dc542e6f66143e11d20cd6e3cf45430415c2994.tar.xz
gsoc2013-epiphany-0dc542e6f66143e11d20cd6e3cf45430415c2994.tar.zst
gsoc2013-epiphany-0dc542e6f66143e11d20cd6e3cf45430415c2994.zip
ephy-window: do not show progress for pages that load very quickly (eg, about:blank).
svn path=/trunk/; revision=8792
-rw-r--r--src/ephy-window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index f826ba74f..3f8247d00 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1613,7 +1613,7 @@ clear_progress_cb (EphyWindow *window)
static void
sync_tab_load_progress (EphyEmbed *embed, GParamSpec *pspec, EphyWindow *window)
{
- gdouble progress;
+ gdouble progress, previous_progress;
gboolean loading;
if (window->priv->closing) return;
@@ -1627,6 +1627,14 @@ sync_tab_load_progress (EphyEmbed *embed, GParamSpec *pspec, EphyWindow *window)
progress = ephy_embed_get_load_percent (embed)/100.0;
loading = ephy_embed_get_load_status (embed);
+ /* Do not show a 'blink' progress from pages that go from 0 to 100,
+ * for example about:blank. */
+ /* This might be refined by actually checking that the transition
+ * from 0 to 100 indeed took almost no time at all */
+ previous_progress = gtk_entry_get_progress_fraction (GTK_ENTRY (window->priv->entry));
+ if (previous_progress == 0.0 && progress == 1.0)
+ return;
+
if (progress == 1.0 && loading)
{
window->priv->clear_progress_timeout_id =