[Vala] x11-improvements 4/4: add missing XTest bindings

2011-03-14 Thread Alexander Kurtz
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 &&

[Vala] x11-improvements 3/4: add missing function to x11.vapi

2011-03-14 Thread Alexander Kurtz
Hi, This patch adds a missing function to the X11 bindings of Vala 0.10.4: --- x11.vapi.orig 2011-03-14 14:09:53.640728903 +0100 +++ x11.vapi2011-03-14 14:14:03.956717821 +0100 @@ -135,6 +135,9 @@ [CCode (cname = "XKeysymToKeycode")] public int keysym_to_

[Vala] x11-improvements 2/4: fix use-after-free in x11.vapi

2011-03-14 Thread Alexander Kurtz
Hi, This works with Vala 0.10.4: $ cat test.vala void main(){ X.Display disp = new X.Display(); stdout.printf("%s\n", disp.display_string()); } $ valac --pkg=x11 test.vala && ./test :0.0 $ This doesn't work with Vala 0.10.4: $ cat test.vala void main(){ X.Display dis

[Vala] x11-improvements 1/4: fix typo in x11.vapi

2011-03-14 Thread Alexander Kurtz
Hi, This patch fixes a small typo in the X11 bindings of Vala 0.10.4: --- x11.vapi.orig 2011-03-14 13:56:11.087734497 +0100 +++ x11.vapi2011-03-14 13:57:16.400729669 +0100 @@ -202,7 +202,7 @@ public int select_input (Window w, long event_mask); [CCode (

[Vala] delegates + struct initializer problem

2011-03-14 Thread Maga Abdurakhmanov
Hi! I'm using structure with delegate field. When I assign that field with structure initializer, then call to delegate is failed. Am I doing something wrong or is this a bug in vala? Here is the code demonstrating problem: delegate void func(); class test_class : Object { public void method() {

Re: [Vala] Creating a binding for a non-glib library and using delegate to map a function pointer

2011-03-14 Thread Abderrahim Kitouni
في ح، 13-03-2011 عند 17:54 +0100 ، كتب Luca Dionisi: > > > > Another important point: you shouldn't use has_target=false if the > > library you are binding has user_data arguments, so your > > FunctionDelegate should be defined as > > > > public delegate void* FunctionDelegate (); > > > > And gener

Re: [Vala] gtkaml 0.4.2 released

2011-03-14 Thread Гаврилов Максим
14/03/2011 в 21:32 +0200, Vlad Grecescu wrote: > Hello, > We are proud to announce the 0.4.2 version of Gtkaml with the new Gtkon > syntax. Included in Vala overlay for Gentoo. http://code.google.com/p/gentoo-vala/ I didn't find any information about exact version of glib, gtk+ and libxml which

[Vala] gtkaml 0.4.2 released

2011-03-14 Thread Vlad Grecescu
Hello, We are proud to announce the 0.4.2 version of Gtkaml with the new Gtkon syntax. Changes in 0.4.2: - updated to valacompiler 0.11.6, compatible with vala 0.10.4 - internal classes: by using gtkaml:internal="foo" on the root node. The existing gtkaml:name becomes an alias for gtkaml:public.

Re: [Vala] Contributing (to docs)

2011-03-14 Thread Treviño
Il giorno lun, 14/03/2011 alle 09.32 -0300, Matt Butler ha scritto: > Hi Phil, > > Thanks for your reply. I suppose initially I'd like to work with the > valadoc.org site and APIs to expand them further, as many currently just > show the method or class signature without any/many details about arg

Re: [Vala] Contributing (to docs)

2011-03-14 Thread Matt Butler
Hi Phil, Thanks for your reply. I suppose initially I'd like to work with the valadoc.org site and APIs to expand them further, as many currently just show the method or class signature without any/many details about arguments or explanation as to what all their purposes are (most are obvious by t