X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-dualscreen.c;h=0e8d808ba0cdffb26298f80f1ab9f7a7e6a8b34b;hb=3ef022d148c7ddb762bb7ec483ef218d907bf143;hp=3a0beaea8aac23f9e5e51bb592a569f25117650e;hpb=f2366d56fd604175c94a14a4e597984424c73dd6;p=evince.git diff --git a/shell/ev-dualscreen.c b/shell/ev-dualscreen.c index 3a0beaea..0e8d808b 100644 --- a/shell/ev-dualscreen.c +++ b/shell/ev-dualscreen.c @@ -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);