diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-03-13 13:30:19 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-03-13 13:52:35 (GMT) |
commit | 0c3040ad65632ef58234bbbb68af8513e94307bc (patch) | |
tree | 18d68541ad7c5ed97e08657f65f9648a18de8813 /shell | |
parent | d0c6ac40687cc1ca6f70851b80d2a86e5a39631f (diff) |
Use monitor height instead of screen height to calculate page scale in presentation mode
Fixes presentation mode in dual head setups. Fixes bug #608924.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 7 |
1 files changed, 5 insertions, 2 deletions
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) |