From a3d63d0ac084e276664a835e83e379b563943c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 25 May 2017 15:50:24 +0800 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c index a584b81a5..c78475941 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);