Re: GtkText as stdout



> How do I direct the stdout to my GtkText widget.
> Is there a a kind of a file associated with this
> widget?

Hi Reham, I guess this is stdout from a child process?

Usually you fork() off the child and make a pipe back to your gtk 
program. Use gdk_input_add() to link a callback to the file id, and in 
the callback, append the new text to the GtkText widget.

John



========================================================== 
Aelbert Cuyp 13 February - 12 May 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/cuyp/



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