[epiphany/overview: 10/12] Hide the overview on url load



commit afd8a8078d373593df3f911a2bd3fdb170cbb19b
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Jan 25 18:26:02 2012 +0200

    Hide the overview on url load
    
    By handling webview's load-status
    
    https://bugzilla.gnome.org/show_bug.cgi?id=455173

 src/ephy-window.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 2fef225..829ecc3 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2591,6 +2591,16 @@ present_on_idle_cb (GtkWindow *window)
 }
 
 static void
+load_status_cb (EphyWebView *view,
+		GParamSpec *pspec,
+		EphyWindow *window)
+{
+	if (webkit_web_view_get_load_status (WEBKIT_WEB_VIEW (view)) == WEBKIT_LOAD_PROVISIONAL) {
+		ephy_window_set_overview_mode (window, FALSE);
+	}
+}
+
+static void
 notebook_page_added_cb (EphyNotebook *notebook,
 			EphyEmbed *embed,
 			guint position,
@@ -2611,6 +2621,8 @@ notebook_page_added_cb (EphyNotebook *notebook,
 
 	g_signal_connect_object (ephy_embed_get_web_view (embed), "ge-modal-alert",
 				 G_CALLBACK (embed_modal_alert_cb), window, G_CONNECT_AFTER);
+	g_signal_connect (ephy_embed_get_web_view (embed), "notify::load-status",
+			  G_CALLBACK (load_status_cb), window);
 
 	/* Let the extensions attach themselves to the tab */
 	manager = EPHY_EXTENSION (ephy_shell_get_extensions_manager (ephy_shell));



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