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=d8ab6e18fc12ea5db9c4a5c09cf3577d8e08369d;hb=3ef022d148c7ddb762bb7ec483ef218d907bf143;hp=b7cf4442457105ae55526b442cc5ba896337baca;hpb=f2366d56fd604175c94a14a4e597984424c73dd6;p=evince.git diff --git a/shell/ev-window.c b/shell/ev-window.c index b7cf4442..d8ab6e18 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" @@ -4000,20 +4001,22 @@ ev_window_view_presentation_focus_out (EvWindow *window) } static void -ev_window_run_presentation_wrapper () +ev_window_run_presentation_wrapper (EvWindow *window) { - if ( get_num_monitors(GTK_WINDOW(window) > 1) { + if ( get_num_monitors(GTK_WINDOW(window)) > 1) { EvWindow *presentation_window = window; EvDSCWindow *control = ev_dscwindow_get_control(); - ev_dscwindow_set_presentation (control, presentation_window); + ev_dscwindow_set_presentation (control, presentation_window, + presentation_window->priv->document); gtk_window_present (GTK_WINDOW (control)); } else - ev_window_stop_presentation (window); + ev_window_stop_presentation (window, TRUE); } static void -ev_window_stop_presentation_wrapper(){ +ev_window_stop_presentation_wrapper(EvWindow *window, gboolean unfullscreen_window) +{ } void