[Vala] gstreamer-controller bindings

2010-07-19 Thread Rafael Monica
Hello, I'm trying to use the gstreamer-controller bindings but they don't seem to map correctly to the underlying C api. Now the vapi file says it's generated by vapigen , do not modify. So how to get this fixed without the fixes being overwritten by vapigen in the future?

Re: [Vala] gstreamer-controller bindings

2010-07-19 Thread Harry Van Haaren
On Mon, Jul 19, 2010 at 2:54 PM, Shawn Ferris shawn.fer...@gmail.comwrote: So how to get this fixed without the fixes being overwritten by vapigen in the future You can use metadata to knudge vapigen to generate correct bindings. True. That will only work if you know what the correct

[Vala] Compilation errors when inheriting from Object

2010-07-19 Thread Jan-Jaap van der Geer
Hi, Vala 0.9.3 I am having trouble compiling my program and I am not sure why. This is what I am getting: valac test.vala -C --pkg=test --vapidir=. gcc test.c -c -I/LibGLib2:glib-2.0 -I. -o test.o test.c: In function 'test_class_init': test.c:131: error: 'TEST_NS_TYPE_TEST_TYPE' undeclared

[Vala] clutter 1.3.8 bindings?

2010-07-19 Thread Dioselin Courter
Hello everybody, Does anybody on the list have bindings for clutter, cogl, cally 1.3.8? I haven't had much luck generating them myself (newbie). Thank you, Dio.- ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] Compilation errors when inheriting from Object

2010-07-19 Thread Luca Bruno
On Mon, Jul 19, 2010 at 11:54:22PM +0200, Jan-Jaap van der Geer wrote: namespace TestNS { [CCode (cname = testtype, cheader_filename = test.h)] public struct TestType : uint { } } Try adding has_type_id = false to the CCode -- http://www.debian.org - The Universal Operating System

Re: [Vala] Compilation errors when inheriting from Object

2010-07-19 Thread Luca Bruno
On Mon, Jul 19, 2010 at 11:54:22PM +0200, Jan-Jaap van der Geer wrote: namespace TestNS { [CCode (cname = testtype, cheader_filename = test.h)] public struct TestType : uint { } } You might want to add [SimpleType] and [IntegerType], look at glib-2.0.vapi for binding integers. --

Re: [Vala] Manual VAPI writing

2010-07-19 Thread Jiří Zárevúcky
Harry Van Haaren píše v Po 19. 07. 2010 v 21:45 +0100: Hey All, I had this working before, but due to Hard disk issues I lost the .vapi. Currently I have a vapi that will create the right types, initialize the object (and destroy it), but I cant figure the read function out anymore:

Re: [Vala] Manual VAPI writing

2010-07-19 Thread Harry Van Haaren
// sf_count_tsf_read_float(SNDFILE *sndfile, float *ptr, sf_count_t items) ; [CCode (cname=sf_read_float)] public static count_t read_float(float *array,count_t numSamples); You don't want that to be a static method. Static means it doesn't work with an