object: register all properties in one go

This commit is contained in:
Stefan Sauer 2012-01-23 11:03:09 +01:00
parent 55eea8f780
commit 4453c2cebe

View file

@ -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: