[gtk+/wip/paint-clock] GtkSpiner: adjust to minor GPeriodic change
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/paint-clock] GtkSpiner: adjust to minor GPeriodic change
- Date: Wed, 20 Oct 2010 23:40:49 +0000 (UTC)
commit c52cbb18d65d8ade76be2d348df7a9e6e60ac8d5
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Oct 21 01:40:01 2010 +0200
GtkSpiner: adjust to minor GPeriodic change
The timestamp to the tick function is now in microseconds instead of
milliticks.
gtk/gtkspinner.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index eec2989..edbd71b 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]