[epiphany/overview: 21/24] ephy-window: only react to the active embed if the overview is hidden



commit 45faf2156eca4f15d37205108b9bbe16b17a4223
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed May 9 19:13:49 2012 +0300

    ephy-window: only react to the active embed if the overview is hidden
    
    When showing the overview, the window doesn't need to be updated with
    changes in the currently active embed.

 src/ephy-window.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index aaa1dc0..292f13b 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2422,12 +2422,12 @@ ephy_window_set_active_tab (EphyWindow *window, EphyEmbed *new_embed)
 
 	if (old_embed == new_embed) return;
 
-	if (old_embed != NULL)
+	if (window->priv->overview_mode == FALSE && old_embed != NULL)
 		ephy_window_disconnect_active_embed (window);
 
 	window->priv->active_embed = new_embed;
 
-	if (new_embed != NULL)
+	if (window->priv->overview_mode == FALSE && new_embed != NULL)
 		ephy_window_connect_active_embed (window);
 }
 
@@ -3856,10 +3856,12 @@ static void
 ephy_window_toggle_overview (EphyWindow *window, gboolean overview_mode)
 {
 	if (overview_mode) {
+		ephy_window_disconnect_active_embed (window);
 		gtk_widget_show (window->priv->overview);
 		gtk_widget_hide (GTK_WIDGET (window->priv->notebook));
 
 	} else {
+		ephy_window_connect_active_embed (window);
 		gtk_widget_hide (window->priv->overview);
 		gtk_widget_show (GTK_WIDGET (window->priv->notebook));
 	}



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