#include "ev-dualscreen.h"
#include "ev-window.h"
#include "ev-view.h"
+#include "ev-utils.h"
struct _EvDSCWindowPrivate {
GtkWidget *main_box;
return control;
}
+
/*TODO: Fix me!*/
static void
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;
**/
void
ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
- EvWindow *presentation_window)
+ EvWindow *presentation_window, EvDocument *document)
{
if (!EV_IS_WINDOW (presentation_window))
return;
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);