Re: how to use an existing server connection ?



On Wed, 24 May 2000 08:21:59 EDT, Paul Barton-Davis <pbd@Op.Net>  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





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