GtkWidget *notesview_scrolled_window;
GtkWidget *presentation_window;
- EvView *presentation_view;
+ EvViewPresentation *presentation_view;
EvDocument * presentation_document;
gint moveback_monitor;
};
**/
void
ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
- EvWindow *presentation_window, EvDocument *document, GtkWidget *pview)
+ EvWindow *presentation_window, EvDocument *document, EvViewPresentation *pview)
{
if (!EV_IS_WINDOW (presentation_window))
return;
- ev_dscwindow->priv->presentation_window = presentation_window;
+ ev_dscwindow->priv->presentation_window = GTK_WIDGET(presentation_window);
ev_dscwindow->priv->presentation_document = document;
- ev_dscwindow->priv->presentation_view = pview;
+ ev_dscwindow->priv->presentation_view = EV_VIEW_PRESENTATION(pview);
g_signal_connect (ev_dscwindow->priv->presentation_view,
"notify::page",
G_CALLBACK (ev_dscwindow_presentation_page_changed_cb),
// ev_document_model_set_document (priv->model, NULL);
// ev_view_set_document (EV_VIEW (priv->overview), NULL);
- g_object_unref (priv->overview);
+// g_object_unref (priv->overview);
// }
// if (EV_IS_VIEW (priv->notesview)) {
// ev_view_set_document (EV_VIEW (priv->notesview), NULL);
// g_object_unref (priv->notesview);
// }
/*TODO: save fulscreen state*/
- ev_window_stop_presentation (priv->presentation_window, 0);
+ ev_window_stop_presentation (EV_WINDOW(priv->presentation_window), 0);
if (priv->moveback_monitor >= 0) {
GtkWindow * presentation_window = GTK_WINDOW (priv->presentation_window);