diff options
author | Stefano Facchini <stefano.facchini@gmail.com> | 2012-01-19 18:09:07 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-01-24 16:27:16 +0100 |
commit | 29a30490ed51e347e8f57d2bf9af69400734eee8 (patch) | |
tree | 536cadfb0ebc0296222e878e6c7d092caf2584d0 /gi/_glib/pygmainloop.c | |
parent | 557a61c12c01137a0d7c679c4b053973df09d445 (diff) | |
download | pygobject-29a30490ed51e347e8f57d2bf9af69400734eee8.tar.gz |
pygmainloop: allow for extra arguments in 'quit' method
To allow for the common syntax:
object.connect('signal-name', main_loop.quit)
https://bugzilla.gnome.org/show_bug.cgi?id=668288
Diffstat (limited to 'gi/_glib/pygmainloop.c')
-rw-r--r-- | gi/_glib/pygmainloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gi/_glib/pygmainloop.c b/gi/_glib/pygmainloop.c index 43dcf927..eb6775ee 100644 --- a/gi/_glib/pygmainloop.c +++ b/gi/_glib/pygmainloop.c @@ -315,7 +315,7 @@ _wrap_g_main_loop_is_running (PyGMainLoop *self) } static PyObject * -_wrap_g_main_loop_quit (PyGMainLoop *self) +_wrap_g_main_loop_quit (PyGMainLoop *self, PyObject *args, PyObject *kwargs) { g_main_loop_quit(self->loop); @@ -346,7 +346,7 @@ _wrap_g_main_loop_run (PyGMainLoop *self) static PyMethodDef _PyGMainLoop_methods[] = { { "get_context", (PyCFunction)_wrap_g_main_loop_get_context, METH_NOARGS }, { "is_running", (PyCFunction)_wrap_g_main_loop_is_running, METH_NOARGS }, - { "quit", (PyCFunction)_wrap_g_main_loop_quit, METH_NOARGS }, + { "quit", (PyCFunction)_wrap_g_main_loop_quit, METH_VARARGS|METH_KEYWORDS }, { "run", (PyCFunction)_wrap_g_main_loop_run, METH_NOARGS }, { NULL, NULL, 0 } }; |