Before calling gtk_init(), save the X error handlers with
XSetErrorHandler(NULL), XSetIOErrorHandler(NULL); after you're finished,
restore them. Thus:
void my_plugin() {
int (*old_handler) (Display *, XErrorEvent *) = XSetErrorHandler
(NULL);
int (*old_io_handler) (Display *, XErro
To answer my own question: I solved it by calling gdk_error_trap_push() to
trap the X error. Probably not the most elegant solution but it seems to
work.
On 8/10/06, Kevin Arthur <[EMAIL PROTECTED]> wrote:
>
> I'm having a fairly basic main loop/event problem in a GTK+ application.
> I'm sure thi
I'm having a fairly basic main loop/event problem in a GTK+ application.
I'm sure this is a dumb beginner FAQ, but haven't had any luck finding an
answer in the documentation.
I'm on linux, using gtk-2.0, developing code that runs as a plugin within
another program (which is not using gtk). My pl