[epiphany/overview: 20/24] ephy-window: add internal ephy_window_toggle_overview()



commit 918a86fbb0cc73a5405225a88e334f72dbd88bc1
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 9c0c1db..aaa1dc0 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3852,6 +3852,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)
 {
@@ -3864,13 +3877,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]