[epiphany/overview: 15/28] ephy-window: add internal ephy_window_toggle_overview()



commit 87d9e0172c5368aba5198a71725d2c6deee4728c
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed May 9 19:12:05 2012 +0300

    ephy-window: add internal ephy_window_toggle_overview()
    
    This will grow a bit, so better split it out

 src/ephy-window.c |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 2a781b1..cc6c701 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -4086,6 +4086,19 @@ ephy_window_get_overview_mode (EphyWindow *window)
 	return window->priv->overview_mode;
 }
 
+static void
+ephy_window_toggle_overview (EphyWindow *window, gboolean overview_mode)
+{
+	if (overview_mode) {
+		gtk_widget_show (window->priv->overview);
+		gtk_widget_hide (GTK_WIDGET (window->priv->notebook));
+
+	} else {
+		gtk_widget_hide (window->priv->overview);
+		gtk_widget_show (GTK_WIDGET (window->priv->notebook));
+	}
+}
+
 void
 ephy_window_set_overview_mode (EphyWindow *window, gboolean overview_mode)
 {
@@ -4098,13 +4111,7 @@ ephy_window_set_overview_mode (EphyWindow *window, gboolean overview_mode)
 	if (priv->overview_mode == overview_mode)
 		return;
 
-	if (overview_mode) {
-		gtk_widget_show (priv->overview);
-		gtk_widget_hide (GTK_WIDGET (priv->notebook));
-	} else {
-		gtk_widget_hide (priv->overview);
-		gtk_widget_show (GTK_WIDGET (priv->notebook));
-	}
+	ephy_window_toggle_overview (window, overview_mode);
 
 	priv->overview_mode = overview_mode;
 



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