> Is there any way to track when gtk/glib/... warnings are emitted
> (those ones seen in all most bug reports), so that we can then call (new
> Exception).printStackTrace() ?
Thanks for the prod -- I had a broken warning catcher, and your message
got me to fix it and check it in.
There may be a better way to do this, but I define a log_handler method
which stores messages, then bound my native code with g_set_log_handler
and g_remove_log_handler calls. I found that the first warning/error is
usually the important one, and so only store that one for my error
reporting. Since I don't know how long-lived the message text is, I
strdup it and free the dupe after ThrowNew copies the message into the
exception.
Details are in the latest org_gnu_glade_LibGlade.c.
Tom
|