Fix g2g_object_class_list_properties() so that num_properties gets set.
authorRichard Boulton <richard@tartarus.org>
Tue, 26 Jun 2001 19:06:37 +0000 (19:06 +0000)
committerRichard Boulton <richard@tartarus.org>
Tue, 26 Jun 2001 19:06:37 +0000 (19:06 +0000)
Original commit message from CVS:
Fix g2g_object_class_list_properties() so that num_properties gets set.

gst/gobject2gtk.c

index 75d8b30..d19767b 100644 (file)
@@ -118,6 +118,7 @@ g2g_object_class_list_properties(GtkObjectClass *oclass,guint *n_properties) {
   int i;
 
   args = gtk_object_query_args (type, &flags, &num_args);
+  // FIXME: args and flags need to be freed. 
 
   params = g_new0(GParamSpec *,num_args);
   for (i=0;i<num_args;i++) {
@@ -127,6 +128,8 @@ g2g_object_class_list_properties(GtkObjectClass *oclass,guint *n_properties) {
     params[i]->flags = flags[i];
   }
 
+  *n_properties = num_args;
+
   return params;
 }