Commit 724c5ac4 authored by Guido Gunther's avatar Guido Gunther
Browse files

layersurface: Don't make props construct-only



This allows us to override in the derived classes constructor.
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 14149493
...@@ -387,14 +387,14 @@ phosh_layer_surface_class_init (PhoshLayerSurfaceClass *klass) ...@@ -387,14 +387,14 @@ phosh_layer_surface_class_init (PhoshLayerSurfaceClass *klass)
"layer-shell", "layer-shell",
"Wayland Layer Shell Global", "Wayland Layer Shell Global",
"The layer shell wayland global", "The layer shell wayland global",
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
props[PHOSH_LAYER_SURFACE_PROP_WL_OUTPUT] = props[PHOSH_LAYER_SURFACE_PROP_WL_OUTPUT] =
g_param_spec_pointer ( g_param_spec_pointer (
"wl-output", "wl-output",
"Wayland Output", "Wayland Output",
"The wl_output associated with this surface", "The wl_output associated with this surface",
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
props[PHOSH_LAYER_SURFACE_PROP_ANCHOR] = props[PHOSH_LAYER_SURFACE_PROP_ANCHOR] =
g_param_spec_uint ( g_param_spec_uint (
...@@ -404,7 +404,7 @@ phosh_layer_surface_class_init (PhoshLayerSurfaceClass *klass) ...@@ -404,7 +404,7 @@ phosh_layer_surface_class_init (PhoshLayerSurfaceClass *klass)
0, 0,
G_MAXUINT, G_MAXUINT,
0, 0,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
props[PHOSH_LAYER_SURFACE_PROP_LAYER] = props[PHOSH_LAYER_SURFACE_PROP_LAYER] =
g_param_spec_uint ( g_param_spec_uint (
...@@ -414,7 +414,7 @@ phosh_layer_surface_class_init (PhoshLayerSurfaceClass *klass) ...@@ -414,7 +414,7 @@ phosh_layer_surface_class_init (PhoshLayerSurfaceClass *klass)
0, 0,
G_MAXUINT, G_MAXUINT,
0, 0,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
props[PHOSH_LAYER_SURFACE_PROP_KBD_INTERACTIVITY] = props[PHOSH_LAYER_SURFACE_PROP_KBD_INTERACTIVITY] =
g_param_spec_boolean ( g_param_spec_boolean (
...@@ -521,7 +521,7 @@ phosh_layer_surface_class_init (PhoshLayerSurfaceClass *klass) ...@@ -521,7 +521,7 @@ phosh_layer_surface_class_init (PhoshLayerSurfaceClass *klass)
"Namespace", "Namespace",
"Namespace of the layer surface", "Namespace of the layer surface",
"", "",
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, PHOSH_LAYER_SURFACE_PROP_LAST_PROP, props); g_object_class_install_properties (object_class, PHOSH_LAYER_SURFACE_PROP_LAST_PROP, props);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment