diff options
author | Timm Bäder <mail@baedert.org> | 2020-05-06 19:17:11 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-05-10 08:44:20 +0200 |
commit | 1b10020b6e0853f92f75c7b9bae9d08acff2b5f6 (patch) | |
tree | d573507210ea73ae7cef74efc3388444723329fc /gtk/gtkcssanimationprivate.h | |
parent | 57444f77f755423653b0da6e36a74695aa7e1c90 (diff) | |
download | gtk+-1b10020b6e0853f92f75c7b9bae9d08acff2b5f6.tar.gz |
css: Make GtkStyleAnimation and subclasses non-objects
Making them GObjects is unnecessary. This enables further optimizations
down the road. The only place we use them in is gtkcssanimatedstyle.c
after all.
Diffstat (limited to 'gtk/gtkcssanimationprivate.h')
-rw-r--r-- | gtk/gtkcssanimationprivate.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gtk/gtkcssanimationprivate.h b/gtk/gtkcssanimationprivate.h index 811cddfcce..ab47be8c9c 100644 --- a/gtk/gtkcssanimationprivate.h +++ b/gtk/gtkcssanimationprivate.h @@ -27,13 +27,6 @@ G_BEGIN_DECLS -#define GTK_TYPE_CSS_ANIMATION (_gtk_css_animation_get_type ()) -#define GTK_CSS_ANIMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GTK_TYPE_CSS_ANIMATION, GtkCssAnimation)) -#define GTK_CSS_ANIMATION_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST (cls, GTK_TYPE_CSS_ANIMATION, GtkCssAnimationClass)) -#define GTK_IS_CSS_ANIMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GTK_TYPE_CSS_ANIMATION)) -#define GTK_IS_CSS_ANIMATION_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE (obj, GTK_TYPE_CSS_ANIMATION)) -#define GTK_CSS_ANIMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CSS_ANIMATION, GtkCssAnimationClass)) - typedef struct _GtkCssAnimation GtkCssAnimation; typedef struct _GtkCssAnimationClass GtkCssAnimationClass; @@ -73,6 +66,7 @@ GtkStyleAnimation * _gtk_css_animation_advance_with_play_state (GtkCssAnimat GtkCssPlayState play_state); const char * _gtk_css_animation_get_name (GtkCssAnimation *animation); +gboolean _gtk_css_animation_is_animation (GtkStyleAnimation *animation); G_END_DECLS |