Re: using xlib with gobject-introspection

On Tue, Jun 14, 2011 at 13:52, tomw <tomw ubilix com> wrote:
> 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.

You may be able to do so with ctypes as well, but may not be worth the
hassle if you aren't already familiar with that.



>> the xlib-2.0.gir is used to fill out the data structures for other
>> libraries, like GDK.
>> ciao,
>>  Emmanuele.
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org

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