return NULL from g2g_object_class_find_property if gtk_object_arg_get_info returns an error

Original commit message from CVS:
return NULL from g2g_object_class_find_property if gtk_object_arg_get_info returns an error
This commit is contained in:
Steve Baker 2001-07-01 16:01:24 +00:00
parent cd3b66fc5a
commit 4837519148

View file

@ -91,10 +91,13 @@ g2g_object_class_find_property(GtkObjectClass *class,gchar *name)
{
GtkArgInfo *info;
GParamSpec *spec;
//fprintf(stderr,"class name is %s\n",gtk_type_name(class->type));
gtk_object_arg_get_info(class->type,name,&info);
// return NULL if no info found
if (gtk_object_arg_get_info(class->type,name,&info)){
return NULL;
}
spec = g_new0(GParamSpec,1);
if (info) {