GNOME Bugzilla – Bug 668288
Be consistent in allowing extra arguments to main loop quit function
Last modified: 2012-01-24 15:28:29 UTC
Currently it is possible (via overrides) to do: object.connect('signal-name', Clutter.main_quit) object.connect('signal-name', Gtk.main_quit) OTOH, for Glib mainloop the use of a lambda expression is required: object.connect('signal-name', lambda x: some_main_loop.quit()) This is a bit unexpected, since the other two libraries in the GNOME stack with a main loop behave differently. It would be nice to be able to just do object.connect('signal-name', some_main_loop.quit) Or, maybe, even remove that override from Gtk and Clutter
Created attachment 205642 [details] [review] pygmainloop: allow for extra arguments in 'quit' method To allow for the common syntax: object.connect('signal-name', main_loop.quit)
Attachment 205642 [details] pushed as 29a3049 - pygmainloop: allow for extra arguments in 'quit' method