On Fri, Oct 9, 2009 at 11:00, TK Soh <teekay...@gmail.com> wrote: > On Thu, Oct 8, 2009 at 6:57 PM, Steve Borho <st...@borho.org> wrote: >> FYI >> >> I realized today that we need to explicitly 'return False' from all of our >> idle_add() callback routines. >> If the return result evaluates as True, the callback will be called >> endlessly. > > I haven't checked, but it's not documented in PyGTK doc?
Documented: "If callback returns FALSE it is automatically removed from the list of event sources and will not be called again." http://pygstdocs.berlios.de/pygobject-reference/glib-functions.html#function-glib--idle-add After all, for safety, we should return False explicitly. -- Yuki KODAMA ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop