[Vala] [PATCH] x11: Add XTest bindings



Hi everybody,

I've attached bindings for the XTest extension (aka libxtst) and a small
demonstration program which will start/pause your music player.

This is how it should work:

        $ valac --pkg=x11 --pkg=xtst --vapidir=. Test.vala && ./Test 
        sizeof(char) = 1, sizeof(int) = 4, sizeof(long) = 4
        sizeof(X.KeyCode) = 1, sizeof(X.KeySym) = 4, sizeof(X.ID) = 4
        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 this patch needs the patch I submitted earlier[1].

I'm looking forward to any comments/criticism/whatever! If everything is
ok, I would be happy if you could merge this into master.

Best regards

Alexander Kurtz

[1] http://mail.gnome.org/archives/vala-list/2011-April/msg00036.html

Attachment: xtst.vapi
Description: Text Data

Attachment: xtst.deps
Description: Text document

Attachment: Test.vala
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part



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