gtktoolitemgroup: Update to new Glib api

Also, bump required Glib version to 2.27.3

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634882

Signed-off-by: Javier Jardón <jjardon@gnome.org>
This commit is contained in:
Fan, Chun-wei 2010-11-15 16:07:38 +01:00 committed by Javier Jardón
parent 513befc4f2
commit f03eca7b1d
2 changed files with 3 additions and 5 deletions

View File

@ -31,7 +31,7 @@ m4_define([gtk_api_version], [2.0])
m4_define([gtk_binary_version], [2.10.0])
# required versions of other packages
m4_define([glib_required_version], [2.25.10])
m4_define([glib_required_version], [2.27.3])
m4_define([pango_required_version], [1.20])
m4_define([atk_required_version], [1.29.2])
m4_define([cairo_required_version], [1.6])

View File

@ -1754,10 +1754,8 @@ gtk_tool_item_group_set_header_relief (GtkToolItemGroup *group,
static gint64
gtk_tool_item_group_get_animation_timestamp (GtkToolItemGroup *group)
{
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;
return (g_source_get_time (group->priv->animation_timeout) -
group->priv->animation_start) / 1000;
}
static void