From 0c3040ad65632ef58234bbbb68af8513e94307bc Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sat, 13 Mar 2010 13:30:19 +0000 Subject: Use monitor height instead of screen height to calculate page scale in presentation mode Fixes presentation mode in dual head setups. Fixes bug #608924. --- (limited to 'shell') diff --git a/shell/ev-window.c b/shell/ev-window.c index 93f674b..0ceb24f 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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) -- cgit v0.9.1