Re: [Vala] Vala and Cairo 1.12

2013-05-19 Thread Donn
On 18/05/2013 16:57, Jonas Kulla wrote: It's basically the same as declaring foreign functions in C. Let's say you want to use the function 'int cairo_do_foo()' from Vala, you would write something like: namespace Cairo { [CCode (cname="cairo_do_foo")] extern int do_foo(); } The 'CCod

Re: [Vala] Vala and Cairo 1.12

2013-05-18 Thread Jonas Kulla
2013/5/15 Donn > > Are there a lot of new functions in 1.12 that you need? If not, >> you could just inline the function signatures in your vala code >> until someone updates the official vapi. >> > It seems Evan Nemerson is on the case - yay! - but I'd like to know a > little more about this inl

Re: [Vala] Vala and Cairo 1.12

2013-05-15 Thread Donn
On 15/05/2013 15:05, Evan Nemerson wrote: https://git.gnome.org/browse/vala/plain/vapi/cairo.vapi Great, thanks. pass a --vapidir option to valac so it knows where to look for it. I'm also using gtk, and I see a deps file that specifies 'cairo' - this is all in /usr/share/vala/vapi directory.

Re: [Vala] Vala and Cairo 1.12

2013-05-15 Thread Evan Nemerson
On Wed, 2013-05-15 at 10:26 +0200, Donn wrote: > On 15/05/2013 02:23, Evan Nemerson wrote: > > I just pushed a bunch of changes to the vala cairo bindings. If > > something is still missing, please file a bug. > Thanks Evan, however I'm not sure where these bindings can be found online. In the va

Re: [Vala] Vala and Cairo 1.12

2013-05-15 Thread Donn
On 14/05/2013 19:59, Jonas Kulla wrote: some vapis are auto-generated (mostly for glib based libraries I think), but most are hand written and maintained AFAIK. Okay, thanks. I didn't know this. I was wondering how the appropriate cairo_destroy stuff got into my code when I never call these func

Re: [Vala] Vala and Cairo 1.12

2013-05-15 Thread Donn
On 15/05/2013 02:23, Evan Nemerson wrote: I just pushed a bunch of changes to the vala cairo bindings. If something is still missing, please file a bug. Thanks Evan, however I'm not sure where these bindings can be found online. Once fetched, would I simply drop them over my current file: /usr

Re: [Vala] Vala and Cairo 1.12

2013-05-14 Thread Evan Nemerson
On Tue, 2013-05-14 at 14:32 +0200, Donn wrote: > Hi, > Vapi files mystify me. Does anyone know where I can get a vapi (and > anything else I'd need) such that I can use Cairo 1.12? I just pushed a bunch of changes to the vala cairo bindings. If something is still missing, please file a bug. -E

Re: [Vala] Vala and Cairo 1.12

2013-05-14 Thread Jonas Kulla
2013/5/14 Donn > Hi, > Vapi files mystify me. Does anyone know where I can get a vapi (and > anything else I'd need) such that I can use Cairo 1.12? > > Or, perhaps someone can help me generate it? > > BTW - The valadoc.org/cairo seems to be about version 1.0 of cairo - so > it's also out of date

[Vala] Vala and Cairo 1.12

2013-05-14 Thread Donn
Hi, Vapi files mystify me. Does anyone know where I can get a vapi (and anything else I'd need) such that I can use Cairo 1.12? Or, perhaps someone can help me generate it? BTW - The valadoc.org/cairo seems to be about version 1.0 of cairo - so it's also out of date. \d