clutter/stage: Set the right type for the paint-view argument

As it is a cairo_region_t, we can proide the right GType value for it.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1313
This commit is contained in:
Corentin Noël 2020-06-11 22:53:40 +02:00
parent 19b467aa01
commit 6414b8c45f

View File

@ -45,7 +45,7 @@
#include "clutter-build-config.h" #include "clutter-build-config.h"
#include <math.h> #include <math.h>
#include <cairo.h> #include <cairo-gobject.h>
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS #define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#define CLUTTER_ENABLE_EXPERIMENTAL_API #define CLUTTER_ENABLE_EXPERIMENTAL_API
@ -2160,7 +2160,7 @@ clutter_stage_class_init (ClutterStageClass *klass)
NULL, NULL, NULL, NULL, NULL, NULL,
G_TYPE_NONE, 2, G_TYPE_NONE, 2,
CLUTTER_TYPE_STAGE_VIEW, CLUTTER_TYPE_STAGE_VIEW,
G_TYPE_POINTER); CAIRO_GOBJECT_TYPE_REGION);
/** /**
* ClutterStage::presented: (skip) * ClutterStage::presented: (skip)