summaryrefslogtreecommitdiff
path: root/gi/pygi-boxed.c
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2013-08-15 19:23:18 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2013-11-12 04:05:59 -0800
commit2f2069c9efcd8f312ce9ffa572df371fbc08822d (patch)
treefadf5cf751d1d789f3f44abc617fa773b1d62e3c /gi/pygi-boxed.c
parent86a37d67455dc5d435ade35f17b27c5de2b288f5 (diff)
downloadpygobject-2f2069c9efcd8f312ce9ffa572df371fbc08822d.tar.gz
Cleanup overzealous new and init implementations
Remove PyGObject initializer code attempting to set properties on GObjects that have already been created. There were a number of overridden __new__ and __init__ methods that stripped away arguments before calling the base class to work around attempted property sets and argument count errors (fixing the symptom not the problem). Use Gtk.ListStore/TreeStore.new with __new__ override instead of __init__ with set_column_types. https://bugzilla.gnome.org/show_bug.cgi?id=705810
Diffstat (limited to 'gi/pygi-boxed.c')
-rw-r--r--gi/pygi-boxed.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gi/pygi-boxed.c b/gi/pygi-boxed.c
index 5bf2c196..d352e232 100644
--- a/gi/pygi-boxed.c
+++ b/gi/pygi-boxed.c
@@ -75,17 +75,11 @@ _boxed_new (PyTypeObject *type,
PyObject *args,
PyObject *kwargs)
{
- static char *kwlist[] = { NULL };
-
GIBaseInfo *info;
gsize size = 0;
gpointer boxed;
PyGIBoxed *self = NULL;
- if (!PyArg_ParseTupleAndKeywords (args, kwargs, "", kwlist)) {
- return NULL;
- }
-
info = _pygi_object_get_gi_info ( (PyObject *) type, &PyGIBaseInfo_Type);
if (info == NULL) {
if (PyErr_ExceptionMatches (PyExc_AttributeError)) {