]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-dualscreen.c
Small cleanup
[evince.git] / shell / ev-dualscreen.c
index 0fa9782179e591efeba0be1756013fa49c6e79be..a00338f2f12e8832e0f11d21ca87ccd09d1de04e 100644 (file)
@@ -107,7 +107,6 @@ ev_dscwindow_sidebar_visibility_cb (GtkWidget *sidebar)
 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) {
@@ -379,7 +378,7 @@ ev_dscwindow_dispose (GObject *obj)
                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);
 }