diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index ff6a6aa73..a72ecee1c 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -98,15 +98,6 @@ enum static GParamSpec *obj_props[N_PROPS] = { NULL, }; -enum -{ - PRE_PAINT, - - N_SIGNALS -}; - -static guint signals[N_SIGNALS]; - typedef struct _MetaCompositorPrivate { GObject parent; @@ -1129,8 +1120,7 @@ meta_compositor_pre_paint (MetaCompositor *compositor) { COGL_TRACE_BEGIN_SCOPED (MetaCompositorPrePaint, "Compositor (pre-paint)"); - - g_signal_emit (compositor, signals[PRE_PAINT], 0); + META_COMPOSITOR_GET_CLASS (compositor)->pre_paint (compositor); } static gboolean @@ -1335,14 +1325,6 @@ meta_compositor_class_init (MetaCompositorClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, N_PROPS, obj_props); - - signals[PRE_PAINT] = - g_signal_new ("pre-paint", - G_TYPE_FROM_CLASS (klass), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (MetaCompositorClass, pre_paint), - NULL, NULL, NULL, - G_TYPE_NONE, 0); } /**