]> www.fi.muni.cz Git - evince.git/commitdiff
Hide sidebar by default when window is empty
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 30 Apr 2010 08:01:03 +0000 (10:01 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 30 Apr 2010 08:18:46 +0000 (10:18 +0200)
shell/ev-window.c

index 54d58eb40d01cb4491438c0be9dc3a2555d329a1..dab2c5ad0d2cec03f84f466986f1d1f01e860cb5 100644 (file)
@@ -565,7 +565,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 && !presentation;
+       sidebar = (priv->chrome & EV_CHROME_SIDEBAR) != 0 && priv->document && !presentation;
 
        set_widget_visibility (priv->menubar, menubar); 
        set_widget_visibility (priv->toolbar, toolbar);