epiphany r8792 - trunk/src
- From: xan svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8792 - trunk/src
- Date: Thu, 19 Feb 2009 07:50:37 +0000 (UTC)
Author: xan
Date: Thu Feb 19 07:50:37 2009
New Revision: 8792
URL: http://svn.gnome.org/viewvc/epiphany?rev=8792&view=rev
Log:
ephy-window: do not show progress for pages that load very quickly (eg, about:blank).
Modified:
trunk/src/ephy-window.c
Modified: trunk/src/ephy-window.c
==============================================================================
--- trunk/src/ephy-window.c (original)
+++ trunk/src/ephy-window.c Thu Feb 19 07:50:37 2009
@@ -1613,7 +1613,7 @@
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 @@
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 =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]