On 31 Oct 1999 01:17:31 -0400, David Whitehurst <[EMAIL PROTECTED]> wrote:

>I am into an application and I issue a system(cmd); from the
>GTK Application.  Any ideas on how to display stdout on the text
>widget.  I thought that I could write or redirect the output of the
>command to a file, read that file, display the text, and then remove the
>temp file.  This seems a little overkill.  Does anyone have any better
>ideas?  I have my command that I issue, however, the output is sent to
>the window that the application was started in.  Please, if anyone has
>any ideas, I'm all ears.

The GnomeLess widget does exactly this:
        GtkWidget *gl = gnome_less_new();
        gnome_less_show_command(GNOME_LESS(gl), cmd);

Enjoy,
-- Elliot
Do not meddle in the affairs of dragons,
for you are crunchy and good with ketchup. 

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to