Fix g2g_object_class_list_properties() so that num_properties gets set.

Original commit message from CVS:
Fix g2g_object_class_list_properties() so that num_properties gets set.
This commit is contained in:
Richard Boulton 2001-06-26 19:06:37 +00:00
parent 0ab71b3df2
commit 6d077dbe3d

View 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;
}