[epiphany] EphyEmbed: do not show the progressbar for about:blank



commit 33cb922f3c7135a8f4e696f4637d1a6878b93b62
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Fri Dec 16 14:39:15 2011 +0200

    EphyEmbed: do not show the progressbar for about:blank
    
    Now that we've placed a timeout, about:blank shows an annoying
    complete progressbar shortly. We don't need it.

 embed/ephy-embed.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 05fc639..62f2558 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -542,6 +542,7 @@ progress_update (EphyWebView *view, GParamSpec *pspec, EphyEmbed *embed)
 {
   gdouble progress;
   gboolean loading;
+  const char *uri;
 
   EphyEmbedPrivate *priv = embed->priv;
 
@@ -550,6 +551,10 @@ progress_update (EphyWebView *view, GParamSpec *pspec, EphyEmbed *embed)
     priv->clear_progress_source_id = 0;
   }
 
+  uri = webkit_web_view_get_uri (priv->web_view);
+  if (!uri || strcmp (uri, "about:blank") == 0)
+    return;
+
   progress = webkit_web_view_get_progress (priv->web_view);
   loading = ephy_web_view_is_loading (EPHY_WEB_VIEW (priv->web_view));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]