mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
compositor: Remove 'pre-paint' signal
It's not used; just use the vfunc directly. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
This commit is contained in:
parent
468bf81307
commit
ae7cc0417f
@ -98,15 +98,6 @@ enum
|
|||||||
|
|
||||||
static GParamSpec *obj_props[N_PROPS] = { NULL, };
|
static GParamSpec *obj_props[N_PROPS] = { NULL, };
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
PRE_PAINT,
|
|
||||||
|
|
||||||
N_SIGNALS
|
|
||||||
};
|
|
||||||
|
|
||||||
static guint signals[N_SIGNALS];
|
|
||||||
|
|
||||||
typedef struct _MetaCompositorPrivate
|
typedef struct _MetaCompositorPrivate
|
||||||
{
|
{
|
||||||
GObject parent;
|
GObject parent;
|
||||||
@ -1129,8 +1120,7 @@ meta_compositor_pre_paint (MetaCompositor *compositor)
|
|||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaCompositorPrePaint,
|
COGL_TRACE_BEGIN_SCOPED (MetaCompositorPrePaint,
|
||||||
"Compositor (pre-paint)");
|
"Compositor (pre-paint)");
|
||||||
|
META_COMPOSITOR_GET_CLASS (compositor)->pre_paint (compositor);
|
||||||
g_signal_emit (compositor, signals[PRE_PAINT], 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -1335,14 +1325,6 @@ meta_compositor_class_init (MetaCompositorClass *klass)
|
|||||||
G_PARAM_CONSTRUCT_ONLY |
|
G_PARAM_CONSTRUCT_ONLY |
|
||||||
G_PARAM_STATIC_STRINGS);
|
G_PARAM_STATIC_STRINGS);
|
||||||
g_object_class_install_properties (object_class, N_PROPS, obj_props);
|
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user