Re: [gtk-list] Swallow widget



>  	How can I swallow an X app (not GTK+-based) in my GTK+ program?
>  	Is there a swallow widget, that would let me swallow a random X app, that
>  might not be using GTK+ at all? As far as I see it, that would require
>  writing a(nother) interface between GTK+ and X, to handle the events to and
>  from that X app.

You can use the GtkSocket widget for that.  It lets you specify an X
window ID to swallow.  I have a horribly hacked Gnome panel applet
that uses GtkSocket to swallow arbitrary windows:

	http://www.redhat.com/~federico/hacks/saw.tar.gz

It may or may not work :-)

  Federico



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