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/gtkcsstransitionprivate.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/gtkcsstransitionprivate.h')
-rw-r--r-- | gtk/gtkcsstransitionprivate.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/gtk/gtkcsstransitionprivate.h b/gtk/gtkcsstransitionprivate.h index 6f722023a1..f50f070c7e 100644 --- a/gtk/gtkcsstransitionprivate.h +++ b/gtk/gtkcsstransitionprivate.h @@ -25,26 +25,8 @@ G_BEGIN_DECLS -#define GTK_TYPE_CSS_TRANSITION (_gtk_css_transition_get_type ()) -#define GTK_CSS_TRANSITION(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GTK_TYPE_CSS_TRANSITION, GtkCssTransition)) -#define GTK_CSS_TRANSITION_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST (cls, GTK_TYPE_CSS_TRANSITION, GtkCssTransitionClass)) -#define GTK_IS_CSS_TRANSITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GTK_TYPE_CSS_TRANSITION)) -#define GTK_IS_CSS_TRANSITION_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE (obj, GTK_TYPE_CSS_TRANSITION)) -#define GTK_CSS_TRANSITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CSS_TRANSITION, GtkCssTransitionClass)) - -typedef struct _GtkCssTransition GtkCssTransition; typedef struct _GtkCssTransitionClass GtkCssTransitionClass; - -struct _GtkCssTransition -{ - GtkStyleAnimation parent; - - guint property; - GtkCssValue *start; - GtkCssValue *ease; - GtkProgressTracker tracker; - guint finished; -}; +typedef struct _GtkCssTransition GtkCssTransition; struct _GtkCssTransitionClass { @@ -61,6 +43,7 @@ GtkStyleAnimation * _gtk_css_transition_new (guint gint64 delay_us); guint _gtk_css_transition_get_property (GtkCssTransition *transition); +gboolean _gtk_css_transition_is_transition (GtkStyleAnimation *animation); G_END_DECLS |