X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-window.c;h=7e7d94caa83495821b4d10cc999c83c1f8ab8f19;hb=caa2c49b773e42beb5f557ea3b73598b08dea2fc;hp=eafdb292ac5c3cd37754474e8b31690174977780;hpb=3768e2dd98d04cf0d216094c473e605faf39809d;p=evince.git diff --git a/shell/ev-window.c b/shell/ev-window.c index eafdb292..7e7d94ca 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1093,7 +1093,7 @@ ev_window_setup_document (EvWindow *ev_window) 0, 0, 1.0, &page_width, &page_height); scale = (gdouble)128 / (gdouble)page_width; - + rc = ev_render_context_new (0, 0, scale); ev_window->priv->thumbnail_job = ev_job_thumbnail_new (document, rc); g_signal_connect (ev_window->priv->thumbnail_job, "finished", @@ -3798,6 +3798,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))); }