[mutter/wip/tintou/clutter-stage-paint-view-region] clutter/stage: Set the right type for the paint-view argument



commit 6414b8c45f2ac22ebb50ca3c7f0c291b1187f4e2
Author: Corentin Noël <corentin elementary io>
Date:   Thu Jun 11 22:53:40 2020 +0200

    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

 clutter/clutter/clutter-stage.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index ff079c1adc..4af4454847 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -45,7 +45,7 @@
 #include "clutter-build-config.h"
 
 #include <math.h>
-#include <cairo.h>
+#include <cairo-gobject.h>
 
 #define CLUTTER_DISABLE_DEPRECATION_WARNINGS
 #define CLUTTER_ENABLE_EXPERIMENTAL_API
@@ -2160,7 +2160,7 @@ clutter_stage_class_init (ClutterStageClass *klass)
                   NULL, NULL, NULL,
                   G_TYPE_NONE, 2,
                   CLUTTER_TYPE_STAGE_VIEW,
-                  G_TYPE_POINTER);
+                  CAIRO_GOBJECT_TYPE_REGION);
 
   /**
    * ClutterStage::presented: (skip)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]