[Vala] Genie intro and start of tutorials

2008-11-29 Thread Barry Kauler
Hi all, I'm learning Vala, using the Genie syntax. With my level of knowledge I found the Vala/Genie documentation to be a bit too brief and cryptic, so I decided to write tutorials as I went along. The idea being to make it easy for others in the same situation as me. The Genie intro page:

[Vala] [VAPI] define class constructor function

2008-11-29 Thread fdsdœ Fsfsd
Hi, I'm trying to create a binding to ImageMagick library. I've made a simple vapi file : [CCode (cprefix = , lower_case_cprefix = , cheader_filename = ImageMagick/wand/MagickWand.h)] namespace ImageMagick.Wand { [Compact] [CCode (cname=MagickWand, free_function=DestroyMagickWand )]

Re: [Vala] [VAPI] define class constructor function

2008-11-29 Thread Florian Brosch
NewMagickWand should be a static method in vala: [Compact] [CCode (cname=MagickWand, free_function=DestroyMagickWand )] public class Wand { [CCode (cname=NewMagickWand)] public static Wand new_magick_wand (); [CCode (cname=MagickGetSize)] public bool get_size(out ulong width,

[Vala] Release testing

2008-11-29 Thread Jürg Billeter
, Jürg [1] http://www.gnome.org/~juergbi/vala-0.5.2-20081129.tar.bz2 ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Release testing

2008-11-29 Thread gege2061
installed 0.5.1 yet. Regards, Jürg [1] http://www.gnome.org/~juergbi/vala-0.5.2-20081129.tar.bz2http://www.gnome.org/%7Ejuergbi/vala-0.5.2-20081129.tar.bz2 ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala

[Vala] `Gee.List' is not a class, struct, or error code

2008-11-29 Thread fdsdœ Fsfsd
Hello, I've got this error message : Gee.List' is not a class, struct, or error code with the following code : void test() { Gee.Liststring list = null; list = new Gee.Liststring(); } I'm using libgee-0.1.4. I don't understand where is the problem.. Any suggestions? Thanks you.

Re: [Vala] Release testing

2008-11-29 Thread Jürg Billeter
On Sat, 2008-11-29 at 20:57 +0100, gege2061 wrote: Hi, I test on Vala IDE source code. I have an error in generated C Code: gint .26_length1; ... _tmp18 = (_tmp17 = g_key_file_get_string_list (key_file, Valide Plugin, Authors, _tmp16, inner_error), .26_length1 = _tmp16, _tmp17);

Re: [Vala] throw not checking throw type correctly

2008-11-29 Thread Jürg Billeter
On Sat, 2008-11-08 at 03:02 -0600, Dwight Schauer wrote: Alright, I know this is invalid code, but it compiles with warnings, and seg faults when run. The problem is that the vala compiler did not identify the invalid code and call it an error. --- start error.vala --- using GLib; int

[Vala] Re : Release testing

2008-11-29 Thread fdsdœ Fsfsd
used. I've uploaded a source tarball[1] to make testing easier in case you haven't installed 0.5.1 yet. Regards, Jürg [1] http://www.gnome.org/~juergbi/vala-0.5.2-20081129.tar.bz2 ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org