From cf271206c1243f87573bf59611fdc6f826728ed3 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Thu, 23 Jun 2005 14:46:29 +0000 Subject: Fix fir bug 308265: Sidebar dissappears coming out of Presentation mode --- (limited to 'shell') diff --git a/shell/ev-window.c b/shell/ev-window.c index 07aaa37..cb39940 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2216,17 +2216,18 @@ ev_window_sidebar_visibility_changed_cb (EvSidebar *ev_sidebar, GParamSpec *pspe EvWindow *ev_window) { GtkAction *action; - gboolean visible, fullscreen; + gboolean visible, fullscreen_mode; + + + fullscreen_mode = ev_view_get_presentation (EV_VIEW (ev_window->priv->view)) || + ev_view_get_fullscreen (EV_VIEW (ev_window->priv->view)); - g_object_get (ev_window->priv->view, - "fullscreen", &fullscreen, - NULL); visible = GTK_WIDGET_VISIBLE (ev_sidebar); /* In fullscreen mode the sidebar is not visible, * but we don't want to update the chrome */ - if (fullscreen) + if (fullscreen_mode) return; action = gtk_action_group_get_action (ev_window->priv->action_group, "ViewSidebar"); -- cgit v0.9.1