Re: using xlib with gobject-introspection



On Di, 2011-06-14 at 11:42 +0100, Emmanuele Bassi wrote:
> On 2011-06-14 at 11:53, tomw wrote:
> > I'm trying to use xlib via gobject-introspection but I could not find
> > any documentation or examples. The xlib-2.0.gir does not provide any
> > methods so I was wondering whether and how this is possible at all.
> 
> no, it's not possible. Xlib is not GObject-based, so introspection won't
> work. you'd have to create a GObject-wrapper around it — or just use
> GTK+.

Thanks, that explains. Basically I just wanted to create an xlib pixmap
to be used then with clutter :-)

clutter_x11_texture_pixmap_new_with_pixmap (pixmap) 

(or its python/gi equivalent) requires an X Pixmap. Trying to create a
gdk.Pixmap does not help as the xlib.Pixmap is expected. So writing a
wrapper might be the only solution in my case. 

> 
> the xlib-2.0.gir is used to fill out the data structures for other
> libraries, like GDK.
> 
> ciao,
>  Emmanuele.
> 




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