Re: printf redirection to GTK window



What I do (but there is probably a better way), is to use sprintf( ) to
write to a char buffer, then pass the buffer to a gtk_label

Hope this helps

cheers,
Jim Parker

On Fri, 22 Mar 2002, Petro Verheuvel wrote:
Date: Fri, 22 Mar 2002 10:42:07 +0100
To: <gtk-app-devel-list gnome org>
From: "Petro Verheuvel" <pverheuvel roax nl>
Reply-To: <pverheuvel roax nl>
Sender: gtk-app-devel-list-admin gnome org
Subject: printf redirection to GTK window


Hi all,

I was wondering if it is possible to redirect printf()/stdout to a window
that has been created with
GTK?

Thx for answering,

Petro Verheuvel


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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