1211 static PyObject *
1212 _wrap_goo_canvas_item_model_find_child_property (PyObject *cls,
1213 PyObject *args,
1214 PyObject *kwargs)
1215 {
1216 static char *kwlist[] = { "property", NULL };
1217 GObjectClass *klass;
1218 GType itype;
1219 const gchar *prop_name;
1220 GParamSpec *pspec;
1221
1222 if (!PyArg_ParseTupleAndKeywords(args, kwargs,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
1223 "s:item_model_class_find_child_property",
1224 kwlist,
1225 &prop_name))
1226 return NULL;
1227
1228 if ((itype = pyg_type_from_object(cls)) == 0)
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
calling unknown GType (*) (struct PyObject *) from goocanvas.override:1228
when considering value == (GType)0 from goocanvas.override:1228
taking True path
1229 return NULL;
1230
1231 klass = g_type_class_ref(itype);
1232
1233 if (!klass) {
1234 PyErr_SetString(PyExc_RuntimeError,
1235 "could not get a reference to type class");
1236 return NULL;
1237 }
1238
1239 pspec = goo_canvas_item_model_class_find_child_property (klass, prop_name);
1240
1241 if(!pspec){
1242 PyErr_Format(PyExc_KeyError,
1243 "object %s does not support property %s",
1244 g_type_name(itype), prop_name);
1245 return NULL;
1246 }
1247 return pyg_param_spec_new(pspec);
1248 }
returning (PyObject*)NULL without setting an exception