X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=shell%2Fev-window.c;h=e9dea310cc8f2e9c632a842b5a965a92d5431bb7;hb=b4400b84fbb899a1984c8e145b91a09de3a35516;hp=27281b76b56536d252d3f298eff4f3eb6988166c;hpb=ab4177de99126345fdc6acf84720b9d213430cb3;p=evince.git diff --git a/shell/ev-window.c b/shell/ev-window.c index 27281b76..e9dea310 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -3616,6 +3616,9 @@ ev_window_view_toolbar_cb (GtkAction *action, EvWindow *ev_window) static void ev_window_view_sidebar_cb (GtkAction *action, EvWindow *ev_window) { + if (ev_view_get_presentation (EV_VIEW (ev_window->priv->view))) + return; + update_chrome_flag (ev_window, EV_CHROME_SIDEBAR, gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action))); }