[gtk+/gtk-style-context: 495/533] GtkStyleContext: Only allow looping transitions for states being turned on.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 495/533] GtkStyleContext: Only allow looping transitions for states being turned on.
- Date: Wed, 1 Dec 2010 02:47:27 +0000 (UTC)
commit 967f356415812837d8ac6b2564fcfbc195beaf53
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 24 22:56:53 2010 +0100
GtkStyleContext: Only allow looping transitions for states being turned on.
gtk/gtkstylecontext.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index cbb691a..ba72fb7 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -2653,7 +2653,9 @@ gtk_style_context_notify_state_change (GtkStyleContext *context,
gtk_timeline_set_loop (info->timeline, FALSE);
}
}
- else if (!info)
+ else if (!info &&
+ (!gtk_animation_description_get_loop (desc) ||
+ state_value))
{
info = animation_info_new (context, region_id,
gtk_animation_description_get_duration (desc),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]