From 710126d1035739cbd161fd86e4d61716955dbf3a Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Fri, 10 Nov 2006 01:23:56 +0000 Subject: Fixes bug #372474 - Side pane disabled when entering and leaving 2006-11-10 Nickolay V. Shmyrev * shell/ev-window.c: (ev_window_sidebar_visibility_changed_cb): Fixes bug #372474 - Side pane disabled when entering and leaving fullscreen mode. --- (limited to 'shell') diff --git a/shell/ev-window.c b/shell/ev-window.c index bbe65a7..efd0565 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -3071,11 +3071,13 @@ ev_window_sidebar_visibility_changed_cb (EvSidebar *ev_sidebar, GtkAction *action; action = gtk_action_group_get_action (ev_window->priv->action_group, "ViewSidebar"); - gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), - GTK_WIDGET_VISIBLE (ev_sidebar)); if (!ev_view_get_presentation (view) && !ev_view_get_fullscreen (view)) { + + gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), + GTK_WIDGET_VISIBLE (ev_sidebar)); + ev_metadata_manager_set_boolean (ev_window->priv->uri, "sidebar_visibility", GTK_WIDGET_VISIBLE (ev_sidebar)); } -- cgit v0.9.1