diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2011-12-16 20:39:15 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2011-12-16 20:39:50 +0800 |
commit | 33cb922f3c7135a8f4e696f4637d1a6878b93b62 (patch) | |
tree | 9d6a4c7aa8c0245816c347f0e127dd9b63a4909c /embed | |
parent | 8fad1a68ef1649601b1cde4fb5830d0e34023aba (diff) | |
download | gsoc2013-epiphany-33cb922f3c7135a8f4e696f4637d1a6878b93b62.tar gsoc2013-epiphany-33cb922f3c7135a8f4e696f4637d1a6878b93b62.tar.gz gsoc2013-epiphany-33cb922f3c7135a8f4e696f4637d1a6878b93b62.tar.bz2 gsoc2013-epiphany-33cb922f3c7135a8f4e696f4637d1a6878b93b62.tar.lz gsoc2013-epiphany-33cb922f3c7135a8f4e696f4637d1a6878b93b62.tar.xz gsoc2013-epiphany-33cb922f3c7135a8f4e696f4637d1a6878b93b62.tar.zst gsoc2013-epiphany-33cb922f3c7135a8f4e696f4637d1a6878b93b62.zip |
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.
Diffstat (limited to 'embed')
-rw-r--r-- | 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 05fc63963..62f25581f 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)); |