[Xcb] xpyb and other Python modules

Julien Danjou julien at danjou.info
Tue Dec 22 01:52:33 PST 2009


At 1261458177 time_t, Eamon Walsh wrote:
> Hope this helps!  Making xpyb work with pycairo would be awesome.

Damn, this really helps. I'm a newbie, I would not have find that soon!
:-)

So, I'm glad to announce that it works. :-)

xpyb part:

  git://git.naquadah.org/~jd/xpyb.git master

Julien Danjou (1):
      Export API for other Python modules

 src/Makefile.am |    1 +
 src/conn.h      |   15 +--------------
 src/module.c    |    7 +++++++
 src/xpyb.h      |   29 +++++++++++++++++++++++++++++
 4 files changed, 38 insertions(+), 14 deletions(-)
 create mode 100644 src/xpyb.h

Pycairo part:

  git://git.naquadah.org/~jd/pycairo.git master

Julien Danjou (2):
      Add support for XCB surface type
      Add XCB support using xpyb

 configure.ac               |    8 +++
 doc/pycairo_c_api.rst      |    2 +
 doc/reference/surfaces.rst |   32 ++++++++++++
 src/cairomodule.c          |   30 ++++++++++++
 src/private.h              |    9 ++++
 src/pycairo.h              |    6 ++
 src/surface.c              |  114 ++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 201 insertions(+), 0 deletions(-)

Test program attached.
I'd be glad if someone can take a look at it. This is my first time at this,
so I might have missed some things, you never know.
If everything is fine, well, feel free to merge the xpyb patch, and I'll
push the pycairo part to the relative maintainer.

PS: I noticed the attached code does not work in Xephyr for some obscure
reason: setup.roots[0].allowed_depths[0].visuals is 0 long. I'm not
sure, but this looks like a bug.

Cheers,
-- 
Julien Danjou
// ᐰ <julien at danjou.info>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// My root password is
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-cairo-xcb.py
Type: text/x-python
Size: 1956 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xcb/attachments/20091222/b48bd9da/attachment.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20091222/b48bd9da/attachment.pgp 


More information about the Xcb mailing list