Create a GtkDrawable from an X Drawable?



Hi all,

Can I create a GtkDrawable from an X Drawable?
I want to draw on a window not created by Gtk, and for the time being I
follow this:

I create a pixmap
I draw on the pixmap
I get a pixbuffer from the pixmap
I copy the pixbuffer on the drawable using
gdk_pixbuf_xlib_render_to_drawable

But this is really slow. Any ideas?
If I can create a GtkDrawable from an X Drawable, I could draw directly,
avoiding pixmaps, pixbufs & all the copies.

George





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