From: Carlos Garcia Campos Date: Fri, 30 Apr 2010 08:01:03 +0000 (+0200) Subject: Hide sidebar by default when window is empty X-Git-Tag: EVINCE_2_31_1~17 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=7f21acefdcaff36c800c48f7f69ce2605e4e20d1;p=evince.git Hide sidebar by default when window is empty --- diff --git a/shell/ev-window.c b/shell/ev-window.c index 54d58eb4..dab2c5ad 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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);