--- gtk+-2.23.1/gtk/gtktoolitemgroup.c	2010-11-06 06:29:46 +0800
+++ gtk+-2.23.1.new/gtk/gtktoolitemgroup.c	2010-11-08 13:55:37 +0800
@@ -22,7 +22,7 @@
 
 #include "config.h"
 
-#include "gtktoolpaletteprivate.h"
+#include "gtktoolpaletteprivate.h"
 
 #include <gtk/gtk.h>
 #include <math.h>
@@ -1754,10 +1754,17 @@
 static gint64
 gtk_tool_item_group_get_animation_timestamp (GtkToolItemGroup *group)
 {
+#if (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION > 27) || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION == 27 && GLIB_MICRO_VERSION > 1))
+  GTimeSpec now;
+
+  g_source_get_time (group->priv->animation_timeout, &now);
+  return (now.tv_sec * G_USEC_PER_SEC + (now.tv_nsec/1000) - group->priv->animation_start) / 1000;
+#else
   GTimeVal now;
 
   g_source_get_current_time (group->priv->animation_timeout, &now);
   return (now.tv_sec * G_USEC_PER_SEC + now.tv_usec - group->priv->animation_start) / 1000;
+#endif
 }
 
 static void
