summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-01-10 03:31:35 +0100
committerCarlos Garnacho <carlosg@gnome.org>2011-01-10 03:50:01 +0100
commite6277d3b82440168e073bc83bf10fceb76d63995 (patch)
tree51d4659e949e8ba47405e675580befde81d0ac1c /gtk/gtkstylecontext.h
parent3dd838fe76c3193c95ed29fc2e9e1a538dd8b907 (diff)
downloadgtk+-e6277d3b82440168e073bc83bf10fceb76d63995.tar.gz
Add gtk_style_context_cancel_animations()
This function takes a region ID and cancels all animations on or beneath that region (as in push/pop_animatable_region). First user of this is GtkWidget itself, so unmapped widgets have looping animations cancelled. Fixes bug #638119, reported by Jesse van den Kieboom.
Diffstat (limited to 'gtk/gtkstylecontext.h')
-rw-r--r--gtk/gtkstylecontext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index ab9be702e8..ceedc529c0 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -522,6 +522,9 @@ void gtk_style_context_notify_state_change (GtkStyleContext *context,
gpointer region_id,
GtkStateType state,
gboolean state_value);
+void gtk_style_context_cancel_animations (GtkStyleContext *context,
+ gpointer region_id);
+
void gtk_style_context_push_animatable_region (GtkStyleContext *context,
gpointer region_id);
void gtk_style_context_pop_animatable_region (GtkStyleContext *context);