screen-cast-stream-src: Use obj_props array for properties
As is convention. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4065>
This commit is contained in:
parent
bc9cc0135b
commit
cb702a7d21
@ -79,8 +79,12 @@ enum
|
|||||||
PROP_0,
|
PROP_0,
|
||||||
|
|
||||||
PROP_STREAM,
|
PROP_STREAM,
|
||||||
|
|
||||||
|
N_PROPS
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static GParamSpec *obj_props[N_PROPS];
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
READY,
|
READY,
|
||||||
@ -2150,13 +2154,15 @@ meta_screen_cast_stream_src_class_init (MetaScreenCastStreamSrcClass *klass)
|
|||||||
klass->get_preferred_format =
|
klass->get_preferred_format =
|
||||||
meta_screen_cast_stream_src_default_get_preferred_format;
|
meta_screen_cast_stream_src_default_get_preferred_format;
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
obj_props[PROP_STREAM] =
|
||||||
PROP_STREAM,
|
|
||||||
g_param_spec_object ("stream", NULL, NULL,
|
g_param_spec_object ("stream", NULL, NULL,
|
||||||
META_TYPE_SCREEN_CAST_STREAM,
|
META_TYPE_SCREEN_CAST_STREAM,
|
||||||
G_PARAM_READWRITE |
|
G_PARAM_READWRITE |
|
||||||
G_PARAM_CONSTRUCT_ONLY |
|
G_PARAM_CONSTRUCT_ONLY |
|
||||||
G_PARAM_STATIC_STRINGS));
|
G_PARAM_STATIC_STRINGS);
|
||||||
|
g_object_class_install_properties (object_class,
|
||||||
|
N_PROPS,
|
||||||
|
obj_props);
|
||||||
|
|
||||||
signals[READY] = g_signal_new ("ready",
|
signals[READY] = g_signal_new ("ready",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user