Re: GtkText as stdout
- From: John Cupitt ng-london org uk
- To: reham_younis yahoo com
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkText as stdout
- Date: Tue, 9 Apr 2002 11:10:35 +0100
> 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]