]> www.fi.muni.cz Git - evince.git/commitdiff
Do not hide sidebar in fullscreen mode. Fixes bug #396535.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 30 Jul 2007 09:34:14 +0000 (09:34 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Mon, 30 Jul 2007 09:34:14 +0000 (09:34 +0000)
2007-07-30  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-window.c: (update_chrome_visibility),
(ev_window_sidebar_visibility_changed_cb):
Do not hide sidebar in fullscreen mode. Fixes bug #396535.

svn path=/trunk/; revision=2597

ChangeLog
shell/ev-window.c

index cf6da8f787d73a71dfe333ed00a42cecb7173c2f..5c2e7b1142318ba0e103917e40a3e1526139ee70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-30  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-window.c: (update_chrome_visibility),
+       (ev_window_sidebar_visibility_changed_cb):
+
+       Do not hide sidebar in fullscreen mode. Fixes bug #396535.
+       
 2007-07-29  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-navigation-action.c:
index cdc41ea6a7e05a63f7ddd00c01368a8e7ffe502c..99758209c77fa3c3007bcb80a40267777711b111 100644 (file)
@@ -506,7 +506,7 @@ update_chrome_visibility (EvWindow *window)
        fullscreen_toolbar = ((priv->chrome & EV_CHROME_FULLSCREEN_TOOLBAR) != 0 || 
                              (priv->chrome & EV_CHROME_RAISE_TOOLBAR) != 0) && fullscreen;
        findbar = (priv->chrome & EV_CHROME_FINDBAR) != 0;
-       sidebar = (priv->chrome & EV_CHROME_SIDEBAR) != 0 && !fullscreen_mode;
+       sidebar = (priv->chrome & EV_CHROME_SIDEBAR) != 0 && !presentation;
        preview_toolbar = (priv->chrome& EV_CHROME_PREVIEW_TOOLBAR);
 
        set_widget_visibility (priv->menubar, menubar); 
@@ -3806,9 +3806,7 @@ ev_window_sidebar_visibility_changed_cb (EvSidebar  *ev_sidebar,
 
        action = gtk_action_group_get_action (ev_window->priv->action_group, "ViewSidebar");
 
-       if (!ev_view_get_presentation (view) && 
-           !ev_view_get_fullscreen (view)) {
-
+       if (!ev_view_get_presentation (view)) {
                gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action),
                                              GTK_WIDGET_VISIBLE (ev_sidebar));