[eog] Don't show the side pane on show_all()



commit 5f03aaec0715abb9048b43291caa11c40c945a87
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Sep 9 16:00:49 2010 +0300

    Don't show the side pane on show_all()
    
    This was causing the gconf key to be toggled on always on eog startup,
    making the side pane visible regardless of the previously set
    preference.
    
    Fixes bug #613056 - Side pane always shown at startup when plug-in is activated

 src/eog-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 09940e1..1e79ba1 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4117,6 +4117,10 @@ eog_window_construct_ui (EogWindow *window)
 	hpaned = gtk_hpaned_new ();
 
 	priv->sidebar = eog_sidebar_new ();
+	/* The sidebar shouldn't be shown automatically on show_all(),
+	   but only when the user actually wants it. */
+	gtk_widget_set_no_show_all (priv->sidebar, TRUE);
+
 	gtk_widget_set_size_request (priv->sidebar, 210, -1);
 
 	g_signal_connect_after (priv->sidebar,



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