summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-10-05 19:28:33 +0000
committerMatt Wilson <msw@src.gnome.org>2001-10-05 19:28:33 +0000
commitfdbf043ba87e601b741623aa9d3de46be375dedb (patch)
tree5e6fb098fc789489876080bce65200d1d6da6518
parent766ea68eb4cf6d47e0208548fcec09a63bce827a (diff)
downloadpygtk-fdbf043ba87e601b741623aa9d3de46be375dedb.tar.gz
too many tuples.
2001-10-05 Matt Wilson <msw@redhat.com> * gobjectmodule.c (pyg_closure_new): too many tuples.
-rw-r--r--ChangeLog4
-rw-r--r--gobject/gobjectmodule.c2
-rw-r--r--gobjectmodule.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ab1b3fc..ff93d2cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2001-10-05 Matt Wilson <msw@redhat.com>
+ * gobjectmodule.c (pyg_closure_new): too many tuples.
+
+2001-10-05 Matt Wilson <msw@redhat.com>
+
* gobjectmodule.c (pygobject_emit): mask out
G_SIGNAL_TYPE_STATIC_SCOPE to fix signal emission.
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index fa3077f1..1b32e380 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -970,7 +970,7 @@ pyg_closure_new(PyObject *callback, PyObject *extra_args, PyObject *swap_data)
if (!PyTuple_Check(extra_args)) {
PyObject *tmp = PyTuple_New(1);
PySequence_SetItem(tmp, 0, extra_args);
- extra_args = Py_BuildValue("(O)", tmp);
+ extra_args = tmp;
} else {
Py_INCREF(extra_args);
}
diff --git a/gobjectmodule.c b/gobjectmodule.c
index fa3077f1..1b32e380 100644
--- a/gobjectmodule.c
+++ b/gobjectmodule.c
@@ -970,7 +970,7 @@ pyg_closure_new(PyObject *callback, PyObject *extra_args, PyObject *swap_data)
if (!PyTuple_Check(extra_args)) {
PyObject *tmp = PyTuple_New(1);
PySequence_SetItem(tmp, 0, extra_args);
- extra_args = Py_BuildValue("(O)", tmp);
+ extra_args = tmp;
} else {
Py_INCREF(extra_args);
}