X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-presentation-timer.c;fp=shell%2Fev-presentation-timer.c;h=12c7d1be380e14a4629c7d4a8ef89f67398d8318;hb=b5f235502262de83dbd8e1181977c3007b90f393;hp=5c8d21306b7451951f69fbcb27046d73ae6b326a;hpb=3653856f03c6a5fefc3b6ea67bd789650b5bfa1e;p=evince.git diff --git a/shell/ev-presentation-timer.c b/shell/ev-presentation-timer.c index 5c8d2130..12c7d1be 100644 --- a/shell/ev-presentation-timer.c +++ b/shell/ev-presentation-timer.c @@ -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); }