Sean Cody <[EMAIL PROTECTED]> writes:
> Has anyone done any serious work using said glib type?
>
> I've been playing with it and have noticed 0% code saving and the callback
> model doesn't seem to be very usefull for determining things like
> diconnections,timeouts.... Since when is read/write not portable?
The read/write stuff is not particularly useful on Unix; the main
reason it is there is for the Win32 port. On Win32d you can't select
on a pipe. So, a write to a IO channel which is a pipe also sends a
message to the reader on the other end. The Win32 port of the GIMP
uses it a bunch.
The callback behavior is very useful; it allows you to tell anything
you can tell by selecting or polling on a file descriptors, but
with callbacks you can integrate into a main loop with the
GTK+ GUI.
Regards,
Owen
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null