[gtk+/gtk-2-24] gtktoolitemgroup: don't use GTimeSpec
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] gtktoolitemgroup: don't use GTimeSpec
- Date: Tue, 14 Dec 2010 16:04:02 +0000 (UTC)
commit fced380ec992b4654c5dfab74daf245040b89b30
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Dec 15 01:07:06 2010 +0900
gtktoolitemgroup: don't use GTimeSpec
Use gint64 time instead.
Conflicts:
gtk/gtktoolitemgroup.c
gtk/gtktoolitemgroup.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 8025a64..e831468 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -1871,14 +1871,10 @@ gtk_tool_item_group_set_collapsed (GtkToolItemGroup *group,
{
if (priv->animation)
{
- GTimeVal now;
-
- g_get_current_time (&now);
-
if (priv->animation_timeout)
g_source_destroy (priv->animation_timeout);
- priv->animation_start = (now.tv_sec * G_USEC_PER_SEC + now.tv_usec);
+ priv->animation_start = g_get_monotonic_time ();
priv->animation_timeout = g_timeout_source_new (ANIMATION_TIMEOUT);
g_source_set_callback (priv->animation_timeout,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]