]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-presentation-timer.c
Small cleanup
[evince.git] / shell / ev-presentation-timer.c
index 3b2a000dda055f636942eccb1e335bf77fb9875e..12c7d1be380e14a4629c7d4a8ef89f67398d8318 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) \
@@ -65,8 +65,12 @@ ev_presentation_timer_draw(GtkWidget *timer, cairo_t *cr)
        cairo_stroke (cr);
        if(ev_timer->priv->running && ev_timer->priv->time > 0 && ev_timer->priv->remaining > 0)
        {
-               gdouble progress = ev_presentation_timer_progress (ev_timer->priv->time, ev_timer->priv->remaining)*(allocation.width);
-               cairo_rectangle (cr, allocation.width-progress, 10, (allocation.width-(allocation.width-progress))-10, allocation.height-5);
+               gdouble progress = ev_presentation_timer_progress (ev_timer->priv->time,
+                                                                  ev_timer->priv->remaining)*(allocation.width);
+               cairo_rectangle (cr, allocation.width-progress,
+                                10,
+                                (allocation.width-(allocation.width-progress))-10,
+                                allocation.height-5);
                cairo_stroke_preserve (cr);
                cairo_fill(cr);
        }