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



commit 4de4bc6441e49d02c61f268fb167696502ee89c0
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 0a25bea..ccb6cec 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2618,6 +2618,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,
@@ -2638,6 +2648,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]