Helmethead <[EMAIL PROTECTED]> writes:

> Both of these methods use polling right, I don't think there's any way to be 
>notified or block till there's new data or anything... you just have to keep testing 
>the file for new data. And sleep() or usleep() some amount of time between checks so 
>cpu usage don't go nuts.

You can open a GIOChannel to the file you want to read and add a watch 
to the Glib main loop so you get notified when the file can be read. I 
haven't tried reading from log files yet, but I guess it should be 
possible to use GIOChannels here.


Salut, Sven

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

Reply via email to