diff --git a/clutter/clutter/clutter-master-clock-default.c b/clutter/clutter/clutter-master-clock-default.c index a0909ff95..0647c3a7f 100644 --- a/clutter/clutter/clutter-master-clock-default.c +++ b/clutter/clutter/clutter-master-clock-default.c @@ -109,7 +109,8 @@ static GSourceFuncs clock_funcs = { NULL }; -static void clutter_master_clock_iface_init (ClutterMasterClockIface *iface); +static void +clutter_master_clock_iface_init (ClutterMasterClockInterface *iface); #define clutter_master_clock_default_get_type _clutter_master_clock_default_get_type @@ -689,7 +690,7 @@ clutter_master_clock_default_set_paused (ClutterMasterClock *clock, } static void -clutter_master_clock_iface_init (ClutterMasterClockIface *iface) +clutter_master_clock_iface_init (ClutterMasterClockInterface *iface) { iface->add_timeline = clutter_master_clock_default_add_timeline; iface->remove_timeline = clutter_master_clock_default_remove_timeline; diff --git a/clutter/clutter/clutter-master-clock.c b/clutter/clutter/clutter-master-clock.c index 6a0c87364..c4dff9676 100644 --- a/clutter/clutter/clutter-master-clock.c +++ b/clutter/clutter/clutter-master-clock.c @@ -37,10 +37,6 @@ #include "clutter-master-clock-default.h" #include "clutter-private.h" -#define clutter_master_clock_get_type _clutter_master_clock_get_type - -typedef ClutterMasterClockIface ClutterMasterClockInterface; - G_DEFINE_INTERFACE (ClutterMasterClock, clutter_master_clock, G_TYPE_OBJECT) static void diff --git a/clutter/clutter/clutter-master-clock.h b/clutter/clutter/clutter-master-clock.h index 542b9176b..36e974f53 100644 --- a/clutter/clutter/clutter-master-clock.h +++ b/clutter/clutter/clutter-master-clock.h @@ -28,15 +28,12 @@ G_BEGIN_DECLS -#define CLUTTER_TYPE_MASTER_CLOCK (_clutter_master_clock_get_type ()) -#define CLUTTER_MASTER_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_MASTER_CLOCK, ClutterMasterClock)) -#define CLUTTER_IS_MASTER_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_MASTER_CLOCK)) -#define CLUTTER_MASTER_CLOCK_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CLUTTER_TYPE_MASTER_CLOCK, ClutterMasterClockIface)) +#define CLUTTER_TYPE_MASTER_CLOCK (clutter_master_clock_get_type ()) +G_DECLARE_INTERFACE (ClutterMasterClock, clutter_master_clock, + CLUTTER, MASTER_CLOCK, + GObject) -typedef struct _ClutterMasterClock ClutterMasterClock; /* dummy */ -typedef struct _ClutterMasterClockIface ClutterMasterClockIface; - -struct _ClutterMasterClockIface +struct _ClutterMasterClockInterface { /*< private >*/ GTypeInterface parent_iface; @@ -51,8 +48,6 @@ struct _ClutterMasterClockIface gboolean paused); }; -GType _clutter_master_clock_get_type (void) G_GNUC_CONST; - ClutterMasterClock * _clutter_master_clock_get_default (void); void _clutter_master_clock_add_timeline (ClutterMasterClock *master_clock, ClutterTimeline *timeline);