diff --git a/clutter/clutter/clutter-autocleanups.h b/clutter/clutter/clutter-autocleanups.h index db7bfa85d..a37486f32 100644 --- a/clutter/clutter/clutter-autocleanups.h +++ b/clutter/clutter/clutter-autocleanups.h @@ -43,7 +43,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterColorizeEffect, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterConstraint, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterDeformEffect, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterDesaturateEffect, g_object_unref) -G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterEffect, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterFixedLayout, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterFlowLayout, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterGridLayout, g_object_unref) diff --git a/clutter/clutter/clutter-effect.h b/clutter/clutter/clutter-effect.h index b30dd866c..ff24d2188 100644 --- a/clutter/clutter/clutter-effect.h +++ b/clutter/clutter/clutter-effect.h @@ -35,19 +35,13 @@ G_BEGIN_DECLS #define CLUTTER_TYPE_EFFECT (clutter_effect_get_type ()) -#define CLUTTER_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_EFFECT, ClutterEffect)) -#define CLUTTER_IS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_EFFECT)) -#define CLUTTER_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_EFFECT, ClutterEffectClass)) -#define CLUTTER_IS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_EFFECT)) -#define CLUTTER_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_EFFECT, ClutterEffectClass)) -typedef struct _ClutterEffectClass ClutterEffectClass; - -struct _ClutterEffect -{ - /*< private >*/ - ClutterActorMeta parent_instance; -}; +CLUTTER_EXPORT +G_DECLARE_DERIVABLE_TYPE (ClutterEffect, + clutter_effect, + CLUTTER, + EFFECT, + ClutterActorMeta) /** * ClutterEffectClass: @@ -87,9 +81,6 @@ struct _ClutterEffectClass ClutterPickContext *pick_context); }; -CLUTTER_EXPORT -GType clutter_effect_get_type (void) G_GNUC_CONST; - CLUTTER_EXPORT void clutter_effect_queue_repaint (ClutterEffect *effect);