[epiphany/overview: 21/30] 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: 21/30] ephy-window: only react to the active embed if the overview is hidden
- Date: Wed, 13 Jun 2012 08:22:47 +0000 (UTC)
commit aa3a593602b0421f7f5cb1512a145aa7fa2f6521
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 f0e19c6..faa2330 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]