[epiphany/overview: 16/26] ephy-window: only react to the active embed if the overview is hidden
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview: 16/26] ephy-window: only react to the active embed if the overview is hidden
- Date: Tue, 17 Jul 2012 10:37:05 +0000 (UTC)
commit 4292b5d3e03bdd3019129ca4b556738b4a62ec72
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 9acf8e1..81d0380 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2679,12 +2679,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);
}
@@ -4086,10 +4086,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]