]> www.fi.muni.cz Git - evince.git/commitdiff
Small cleanup
authorxbezdick <255993@mail.muni.cz>
Tue, 3 May 2011 12:39:17 +0000 (14:39 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 1 Jun 2011 11:09:22 +0000 (13:09 +0200)
shell/ev-dualscreen.c
shell/ev-presentation-timer.c
shell/ev-window.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);
 }
index 3b2a000dda055f636942eccb1e335bf77fb9875e..5c8d21306b7451951f69fbcb27046d73ae6b326a 100644 (file)
@@ -37,7 +37,7 @@ struct _EvPresentationTimerPrivate
        gint       remaining;
        guint      page;
        guint      pages;
-       guint      running;
+       gboolean   running;
 };
 
 #define EV_PRESENTATION_TIMER_GET_PRIVATE(object) \
index 799f64d66c6d66dd7e482f8e3666ce09a65f17e3..ef6f0b16ac85271cb1e5207cc7d2508e5d60e4fa 100644 (file)
@@ -4053,13 +4053,13 @@ ev_window_run_presentation (EvWindow *window)
        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