X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-window.c;h=7905185e821d03de5b881bc523ec3e8a37f9aab5;hb=68540f68316d14931fb5b895270e5b7b7aad1bed;hp=95908d4db382054b58ed703540250abd5b963931;hpb=d3f9bc975c0b9219b1f6659570e0693a2cfd84e9;p=evince.git diff --git a/shell/ev-window.c b/shell/ev-window.c index 95908d4d..7905185e 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -51,6 +51,7 @@ #include "ephy-zoom.h" #include "ev-application.h" +#include "ev-dualscreen.h" #include "ev-document-factory.h" #include "ev-document-find.h" #include "ev-document-fonts.h" @@ -309,9 +310,6 @@ static void ev_window_stop_fullscreen (EvWindow *windo gboolean unfullscreen_window); static void ev_window_cmd_view_fullscreen (GtkAction *action, EvWindow *window); -/*static void ev_window_run_presentation (EvWindow *window); -static void ev_window_stop_presentation (EvWindow *window, - gboolean unfullscreen_window);*/ static void ev_window_cmd_view_presentation (GtkAction *action, EvWindow *window); static void ev_view_popup_cmd_open_link (GtkAction *action, @@ -4022,6 +4020,7 @@ ev_window_run_presentation (EvWindow *window) current_page, rotation, inverted_colors); + g_signal_connect_swapped (window->priv->presentation_view, "finished", G_CALLBACK (ev_window_view_presentation_finished), window); @@ -4053,6 +4052,15 @@ ev_window_run_presentation (EvWindow *window) if (window->priv->metadata && !ev_window_is_empty (window)) ev_metadata_set_boolean (window->priv->metadata, "presentation", TRUE); + + if ( get_num_monitors(GTK_WINDOW(window)) > 1) { + EvDSCWindow *control = ev_dscwindow_get_control(); + gtk_window_present (GTK_WINDOW (control)); + ev_dscwindow_set_presentation (control, window, + window->priv->document, + EV_VIEW_PRESENTATION(window->priv->presentation_view), + window->priv->metadata); + } } void