Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-06-23 14:46:29 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-06-23 14:46:29 (GMT)
commitcf271206c1243f87573bf59611fdc6f826728ed3 (patch)
tree2401e23c1b5f878ef46526e80f0c859ca7ffefdd
parentbe84d325e18241a7e33ffa07cfce58bb8b54794b (diff)
Fix fir bug 308265: Sidebar dissappears coming out of Presentation mode
-rw-r--r--ChangeLog7
-rw-r--r--shell/ev-window.c11
2 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d8952a..5251400 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2005-06-23 Nikolay V. Shmyrev <nshmyrev@yandex.ru>
+ * shell/ev-window.c: (ev_window_sidebar_visibility_changed_cb):
+
+ Fix for Bug 308265: Sidebar dissappears coming out of
+ Presentation mode
+
+2005-06-23 Nikolay V. Shmyrev <nshmyrev@yandex.ru>
+
* shell/ev-application.c: (ev_application_open):
* shell/ev-document-types.c: (ev_document_types_add_filters),
(ev_document_types_add_filters_for_type):
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");