On Wed, 24 May 2000 08:21:59 EDT, Paul Barton-Davis <[EMAIL PROTECTED]>  said:
> how do i use gdk if the connection to the X server has already been
> made by some other library ?

Unlike the stdio library on most Unixoids, which includes the fileno()
function to get back the file descriptor number from a 'FILE *', you're
sort of stuck here.

The problem is that whatever other library (Motif, Qt, etc) opened the
connection almost certainly set up its own event loop to deal with X events,
and Very Bad Things will happen if you open up your own connection and
set up your own event loop.

The only exception here would be if the other library is also gdk/gtk based,
in which case you can just go ahead and hook into the event loop that's
already been established.

-- 
                                Valdis Kletnieks
                                Operating Systems Analyst
                                Virginia Tech


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to