mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
object: register all properties in one go
This commit is contained in:
parent
55eea8f780
commit
4453c2cebe
1 changed files with 2 additions and 4 deletions
|
@ -213,14 +213,12 @@ gst_object_class_init (GstObjectClass * klass)
|
|||
properties[PROP_NAME] =
|
||||
g_param_spec_string ("name", "Name", "The name of the object", NULL,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
|
||||
g_object_class_install_property (gobject_class, PROP_NAME,
|
||||
properties[PROP_NAME]);
|
||||
|
||||
properties[PROP_PARENT] =
|
||||
g_param_spec_object ("parent", "Parent", "The parent of the object",
|
||||
GST_TYPE_OBJECT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||
g_object_class_install_property (gobject_class, PROP_PARENT,
|
||||
properties[PROP_PARENT]);
|
||||
|
||||
g_object_class_install_properties (gobject_class, PROP_LAST, properties);
|
||||
|
||||
/**
|
||||
* GstObject::deep-notify:
|
||||
|
|
Loading…
Reference in a new issue