static void
ev_dscwindow_set_page (EvDSCWindow *ev_dscwindow, gint page)
{
- guint n_pages = ev_document_get_n_pages(ev_dscwindow->priv->presentation_document);
if((ev_dscwindow->priv->page == 0) && (page == 1))
ev_presentation_timer_start (EV_PRESENTATION_TIMER (ev_dscwindow->priv->timer));
if(ev_dscwindow->priv->page != page) {
g_object_unref (priv->timer);
priv->timer = NULL;
}*/
- ev_presentation_timer_stop(priv->timer);
+ ev_presentation_timer_stop(EV_PRESENTATION_TIMER (priv->timer));
ev_window_stop_presentation (EV_WINDOW(priv->presentation_window), TRUE);
G_OBJECT_CLASS (ev_dscwindow_parent_class)->dispose (obj);
}
if (window->priv->metadata && !ev_window_is_empty (window))
ev_metadata_set_boolean (window->priv->metadata, "presentation", TRUE);
-// if ( get_num_monitors(GTK_WINDOW(window)) > 1) {
+ if ( get_num_monitors(GTK_WINDOW(window)) > 1) {
EvDSCWindow *control = ev_dscwindow_get_control();
gtk_window_present (GTK_WINDOW (control));
ev_dscwindow_set_presentation (control, window,
window->priv->document,
EV_VIEW_PRESENTATION(window->priv->presentation_view));
-// }
+ }
}
void