1388 static PyObject *
1389 _wrap_goo_canvas_item_model_install_child_property (PyObject *cls,
1390 PyObject *args,
1391 PyObject* kwargs)
1392 {
1393 static char *kwlist[] = { "property_id", "pspec", NULL };
1394 PyObject *property;
1395 GType itype;
1396 GObjectClass *klass;
1397 guint property_id;
1398 GParamSpec *pspec;
1399
1400 if (!PyArg_ParseTupleAndKeywords(args, kwargs,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
1401 "iO:item_model_class_install_child_property",
1402 kwlist,
1403 &property_id, &property))
1404 return NULL;
1405
1406
1407 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:1407
when considering value == (GType)0 from goocanvas.override:1407
taking True path
1408 return NULL;
1409
1410 klass = g_type_class_ref(itype);
1411 if (!klass) {
1412 PyErr_SetString(PyExc_RuntimeError,
1413 "could not get a reference to type class");
1414 return NULL;
1415 }
1416
1417 pspec = pyg_param_spec_from_object(property);
1418 if(!pspec) {
1419 g_type_class_unref(klass);
1420 return NULL;
1421 }
1422
1423 if (goo_canvas_item_model_class_find_child_property(G_OBJECT_CLASS(klass), pspec->name)) {
1424 PyErr_Format(PyExc_TypeError,
1425 "there is already a '%s' property installed", pspec->name);
1426 g_type_class_unref(klass);
1427 return NULL;
1428 }
1429
1430 goo_canvas_item_model_class_install_child_property(klass, property_id, pspec);
1431
1432 g_type_class_unref(klass);
1433
1434 Py_INCREF(Py_None);
1435 return Py_None;
1436 }
returning (PyObject*)NULL without setting an exception
found 1 similar trace(s) to this