[mutter] clutter/stage-view: Add G_PARAM_CONSTRUCT flag to properties



commit a3d63d0ac084e276664a835e83e379b563943c79
Author: Jonas Ådahl <jadahl gmail com>
Date:   Thu May 25 15:50:24 2017 +0800

    clutter/stage-view: Add G_PARAM_CONSTRUCT flag to properties
    
    Otherwise those properties won't be set when ->construct is called.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765011

 clutter/clutter/clutter-stage-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c
index a584b81..c784759 100644
--- a/clutter/clutter/clutter-stage-view.c
+++ b/clutter/clutter/clutter-stage-view.c
@@ -322,6 +322,7 @@ clutter_stage_view_class_init (ClutterStageViewClass *klass)
                         "The view layout on the screen",
                         CAIRO_GOBJECT_TYPE_RECTANGLE_INT,
                         G_PARAM_READWRITE |
+                        G_PARAM_CONSTRUCT |
                         G_PARAM_STATIC_STRINGS);
 
   obj_props[PROP_FRAMEBUFFER] =
@@ -330,6 +331,7 @@ clutter_stage_view_class_init (ClutterStageViewClass *klass)
                         "The front buffer of the view",
                         COGL_TYPE_HANDLE,
                         G_PARAM_READWRITE |
+                        G_PARAM_CONSTRUCT |
                         G_PARAM_STATIC_STRINGS);
 
   obj_props[PROP_OFFSCREEN] =
@@ -347,6 +349,7 @@ clutter_stage_view_class_init (ClutterStageViewClass *klass)
                       "The view scale",
                       1, G_MAXINT, 1,
                       G_PARAM_READWRITE |
+                      G_PARAM_CONSTRUCT |
                       G_PARAM_STATIC_STRINGS);
 
   g_object_class_install_properties (object_class, PROP_LAST, obj_props);


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