summaryrefslogtreecommitdiff
path: root/src/totem-sidebar.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2006-08-11 09:02:11 +0000
committerBastien Nocera <hadess@src.gnome.org>2006-08-11 09:02:11 +0000
commit04c8204cdcada15102613da94fa7e861ad1d0a23 (patch)
treeec9cce7dd228b59bd28463a5251ebcc588969d78 /src/totem-sidebar.c
parent4604649bc7fb4211f0fc0d438fa58e133b8e3df7 (diff)
downloadtotem-04c8204cdcada15102613da94fa7e861ad1d0a23.tar.gz
up the requirements to glib 2.8, sorry remove the window width, height and
2006-08-11 Bastien Nocera <hadess@hadess.net> * configure.in: up the requirements to glib 2.8, sorry * data/totem.schemas.in: remove the window width, height and sidebar shown entries, and moved them to a local file * src/totem-private.h: * src/totem-sidebar.c: (totem_sidebar_setup): * src/totem-sidebar.h: * src/totem.c: (totem_action_save_size), (totem_action_save_state), (totem_action_exit), (window_state_event_cb), (totem_setup_window), (main): Save the video widget's width, height, maximised state and whether the sidebar is shown in a local file, rather than saving those (wrongly) in GConf (Closes: #340014)
Diffstat (limited to 'src/totem-sidebar.c')
-rw-r--r--src/totem-sidebar.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/totem-sidebar.c b/src/totem-sidebar.c
index 0898338ee..74de0d318 100644
--- a/src/totem-sidebar.c
+++ b/src/totem-sidebar.c
@@ -106,10 +106,9 @@ totem_sidebar_is_visible (Totem *totem)
}
void
-totem_sidebar_setup (Totem *totem)
+totem_sidebar_setup (Totem *totem, gboolean visible)
{
GtkWidget *item, *item2;
- gboolean visible;
item = glade_xml_get_widget (totem->xml, "tmw_main_pane");
totem->sidebar = ev_sidebar_new ();
@@ -122,9 +121,6 @@ totem_sidebar_setup (Totem *totem)
gtk_widget_set_sensitive (GTK_WIDGET (totem->properties), FALSE);
gtk_paned_pack2 (GTK_PANED (item), totem->sidebar, FALSE, FALSE);
- visible = gconf_client_get_bool (totem->gc,
- GCONF_PREFIX"/sidebar_shown",
- NULL);
totem->sidebar_shown = visible;
item = glade_xml_get_widget (totem->xml, "tmw_sidebar_button");
@@ -142,9 +138,8 @@ totem_sidebar_setup (Totem *totem)
G_CALLBACK (totem_sidebar_toggle), totem);
gtk_widget_show_all (totem->sidebar);
-
gtk_widget_realize (totem->sidebar);
-
+
if (!visible)
gtk_widget_hide (totem->sidebar);
}