[Pkg-vala-maintainers] Bug#619506: add missing XTest bindings

Alexander Kurtz kurtz.alex at googlemail.com
Thu Mar 24 15:25:59 UTC 2011


Package: valac-0.10
Version: 0.10.4-1
Severity: wishlist
Tags: patch

Hi,

since I didn't find any vala bindings for the XTest extension, I tried
writing them myself. The results are attached. I have also attached a
small demonstration program which will start/pause your music player.

This is how it should work:

$ valac --vapidir=. --pkg=x11 --pkg=xtst demo.vala && ./demo
Display :0.0 opened
String XF86AudioPlay has keysym 0x1008FF14
Keysym 0x1008FF14 has keycode 172
Keycode 172 pressed
Keycode 172 released
Display :0.0 flushed
$

Please note that the program needs the patch from #619505[1].

I'm looking forward to any comments/criticism/whatever!

Best regards

Alexander Kurtz

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619505
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xtst.vapi
Type: text/x-vala
Size: 2581 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vala-maintainers/attachments/20110324/dc46a10c/attachment.bin>
-------------- next part --------------
x11
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.vala
Type: text/x-vala
Size: 693 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vala-maintainers/attachments/20110324/dc46a10c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-vala-maintainers/attachments/20110324/dc46a10c/attachment.pgp>


More information about the Pkg-vala-maintainers mailing list