Re: exception trap in key snooper callback



Kevin Ryde wrote:
Is there anything beyond the key snooper
which is a main loop callback not using a GClosure thingie?

I see LinkButton and two AboutDialog callbacks exit the program on an
error (samples below).  That'd make 4 or 5 places where the
Glib->exception stuff would be helpful.  So if they could share
some code ...

We could add gperl_callback_invoke_trapped() which would trap exceptions and
invoke the registered exception handlers if an exception occurred.

The question then is whether changing the mentioned callbacks to be invoked by
gperl_callback_invoke_trapped() is backwards compatible.  Is someone relying on
exceptions in those callbacks aborting the main loop?

-- 
Bye,
-Torsten



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]