diff options
author | Matt Wilson <msw@redhat.com> | 2001-10-05 19:28:33 +0000 |
---|---|---|
committer | Matt Wilson <msw@src.gnome.org> | 2001-10-05 19:28:33 +0000 |
commit | fdbf043ba87e601b741623aa9d3de46be375dedb (patch) | |
tree | 5e6fb098fc789489876080bce65200d1d6da6518 | |
parent | 766ea68eb4cf6d47e0208548fcec09a63bce827a (diff) | |
download | pygtk-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-- | ChangeLog | 4 | ||||
-rw-r--r-- | gobject/gobjectmodule.c | 2 | ||||
-rw-r--r-- | gobjectmodule.c | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -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); } |