]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-dualscreen.c
compile fixes
[evince.git] / shell / ev-dualscreen.c
index 3a0beaea8aac23f9e5e51bb592a569f25117650e..0e8d808ba0cdffb26298f80f1ab9f7a7e6a8b34b 100644 (file)
@@ -27,6 +27,7 @@
 #include "ev-dualscreen.h"
 #include "ev-window.h"
 #include "ev-view.h"
+#include "ev-utils.h"
 
 struct _EvDSCWindowPrivate {
        GtkWidget *main_box;
@@ -158,6 +159,7 @@ ev_dscwindow_get_control (void)
 
        return control;
 }
+
 /*TODO: Fix me!*/
 static void
 ev_dscwindow_window_placement (EvDSCWindow *ev_dscwindow)
@@ -168,7 +170,7 @@ ev_dscwindow_window_placement (EvDSCWindow *ev_dscwindow)
                GdkScreen * screen = gtk_window_get_screen (presentation_window);
 
                gint work_monitor = gdk_screen_get_monitor_at_window (screen,
-                       GTK_WIDGET (presentation_window)->window);
+                       gtk_widget_get_window (GTK_WIDGET (presentation_window)));
 
                gint presentation_monitor = (work_monitor + 1) % 2;
 
@@ -191,7 +193,7 @@ ev_dscwindow_window_placement (EvDSCWindow *ev_dscwindow)
  **/
 void
 ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
-       EvWindow *presentation_window)
+       EvWindow *presentation_window, EvDocument *document)
 {
        if (!EV_IS_WINDOW (presentation_window))
                return;
@@ -200,7 +202,7 @@ ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
        ev_dscwindow->priv->presentation_document = document;
 
        ev_document_model_set_document(ev_dscwindow->priv->model,
-               presentation_window->priv->document);
+               document);
 /*     ev_view_set_document (EV_VIEW (priv->notesview),
                priv->presentation_document);
        ev_dscwindow_window_placement (self);