[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-devel
Subject:    Re: using xlib with gobject-introspection
From:       Tomeu Vizoso <tomeu () sugarlabs ! org>
Date:       2011-06-14 12:20:24
Message-ID: BANLkTi=gD24j=_W-Zf3KWtz1vfMGc7sTkA () mail ! gmail ! com
[Download RAW message or body]

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.

Regards,

Tomeu

>>
>> 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
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic