object: register all properties in one go
authorStefan Sauer <ensonic@users.sf.net>
Mon, 23 Jan 2012 10:03:09 +0000 (11:03 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Mon, 23 Jan 2012 10:03:43 +0000 (11:03 +0100)
gst/gstobject.c

index fd56e31..7863256 100644 (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: