How can wrap a existent X window into GtkWidget?



Hi:

    I got some pure XWindow codes to port to Gtk. Because some of the windows created in the old code (by 
calling XCreateWindow() ) are just for image display and all I need to do with it is to handle the Expose 
event to redraw its image content, I feel strongly that it's too much kill to rewrite its code.  But how can 
I incooperate those X windows into Gtk?

I has checked out the tutorial and refrence, and found only gdk_window_foriegn_new() to be closed to what I 
want, but yet it only gives me a GdkWinodw, not GtkWidget, and I don't know how to connect a Gtk signal 
handler to it. Can anyone help me?

Thanks.







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