On Tue, Jul 29, 2003 at 10:44:47AM -0400, John Ehresman wrote:
> the following, which works except that a warning is logged if the handler
> is disconnected before _disconnect_callback() is invoked (because
> disconnect is called multiple times with the same handler id).

Store a list of connected handler ids, and remove the id when
disconnected. All you need to do is then check if the id is present
before calling disconnect. That should avoid the warning.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to