]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-window.c
Use monitor height instead of screen height to calculate page scale in presentation...
[evince.git] / shell / ev-window.c
index 93f674b6b189854f4cd64577e61f5750a57852ee..0ceb24f1be459cfcc91c9550f4da53c1749b2602 100644 (file)
@@ -3622,9 +3622,9 @@ ev_window_run_presentation (EvWindow *window)
 
        gtk_box_pack_start (GTK_BOX (window->priv->main_box),
                            window->priv->presentation_view,
-                           FALSE, FALSE, 0);
-       gtk_widget_show (window->priv->presentation_view);
+                           TRUE, TRUE, 0);
 
+       gtk_widget_hide (window->priv->hpaned);
        ev_window_update_presentation_action (window);
        update_chrome_visibility (window);
 
@@ -3632,6 +3632,8 @@ ev_window_run_presentation (EvWindow *window)
        if (fullscreen_window)
                gtk_window_fullscreen (GTK_WINDOW (window));
 
+       gtk_widget_show (window->priv->presentation_view);
+
        ev_application_screensaver_disable (EV_APP);
 
        if (window->priv->metadata && !ev_window_is_empty (window))
@@ -3654,6 +3656,7 @@ ev_window_stop_presentation (EvWindow *window,
                              window->priv->presentation_view);
        window->priv->presentation_view = NULL;
 
+       gtk_widget_show (window->priv->hpaned);
        ev_window_update_presentation_action (window);
        update_chrome_visibility (window);
        if (unfullscreen_window)