diff options
author | Benjamin Otte <otte@redhat.com> | 2012-09-12 15:27:59 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-09-17 20:39:12 +0200 |
commit | 7224f897d64055acd09d9befedb526456b80d103 (patch) | |
tree | 9fa909ca97955da01df9a00b83852bb3e888ec94 /gtk/gtkstyleanimationprivate.h | |
parent | 229b6fe17a1c198a1381d905656c23820bfcce94 (diff) | |
download | gtk+-7224f897d64055acd09d9befedb526456b80d103.tar.gz |
animation: Add _gtk_style_animation_is_static()
This will be useful to not trigger updates all the time when nothing is
happening (ie due to animations being paused or due to them having
reached their final value).
Diffstat (limited to 'gtk/gtkstyleanimationprivate.h')
-rw-r--r-- | gtk/gtkstyleanimationprivate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkstyleanimationprivate.h b/gtk/gtkstyleanimationprivate.h index 5d5d6c602e..b4f2c69595 100644 --- a/gtk/gtkstyleanimationprivate.h +++ b/gtk/gtkstyleanimationprivate.h @@ -46,6 +46,8 @@ struct _GtkStyleAnimationClass gboolean (* is_finished) (GtkStyleAnimation *animation, gint64 at_time_us); + gboolean (* is_static) (GtkStyleAnimation *animation, + gint64 at_time_us); GtkBitmask * (* set_values) (GtkStyleAnimation *animation, GtkBitmask *changed, gint64 for_time_us, @@ -60,6 +62,8 @@ GtkBitmask * _gtk_style_animation_set_values (GtkStyleAnimation GtkCssComputedValues *values) G_GNUC_WARN_UNUSED_RESULT; gboolean _gtk_style_animation_is_finished (GtkStyleAnimation *animation, gint64 at_time_us); +gboolean _gtk_style_animation_is_static (GtkStyleAnimation *animation, + gint64 at_time_us); G_END_DECLS |