GtkSpiner: adjust to minor GPeriodic change

The timestamp to the tick function is now in microseconds instead of
milliticks.
This commit is contained in:
Ryan Lortie
2010-10-21 01:40:01 +02:00
parent 85608e903f
commit c52cbb18d6

View File

@@ -276,7 +276,7 @@ gtk_spinner_tick (GPeriodic *periodic,
priv = GTK_SPINNER (user_data)->priv;
duration = priv->cycle_duration * g_periodic_get_hz (periodic);
duration = priv->cycle_duration * 1000;
priv->current = (timestamp % duration) / (duration / priv->num_steps);
gtk_widget_queue_draw (GTK_WIDGET (user_data));