Re: [Vala] ANNOUNCE: Val(a)IDE 0.7.2

2012-12-29 Thread foracc
I tried it out on Windows 7 and it works pretty good. Some things I noticed: - apparently it auto-detects the system language, so the UI was half in german and half in english for me. Easy fix was to add a set lang=en line to the .bat file - there's a Build and Execute button/hot key, but no

[Vala] VAPI: turning a function into a property?

2012-12-08 Thread foracc
Hello list, I started to write a VAPI file for some lib, and tried to turn a rather long function name into a property: [CCode (cheader_filename=allegro5/allegro5.h)] namespace Allegro5 { [Compact] [CCode(cname=ALLEGRO_EVENT_QUEUE,

Re: [Vala] VAPI: turning a function into a property?

2012-12-08 Thread foracc
On Sat, Dec 8, 2012 at 3:42 PM, foracc for...@d00m.info wrote: [CCode (cheader_filename=allegro5/allegro5.h)] namespace Allegro5 { [Compact] [CCode(cname=ALLEGRO_EVENT_**QUEUE, free_function=al_destroy_**event_queue)] class EventQueue { [CCode (cname

[Vala] Setting and getting properties at the same time

2012-11-01 Thread foracc
Hello list, I stumbled on some (for me) unexpected behaviour when setting and getting a property at the same time, which is not consistend with simple types like int. When doing something like int x = (myclass.myproperty = y); x will be set to y, and not whatever mycalss.myproperty will be

Re: [Vala] Setting and getting properties at the same time

2012-11-01 Thread foracc
. JC 2012/11/1 foracc for...@d00m.info Hello list, I stumbled on some (for me) unexpected behaviour when setting and getting a property at the same time, which is not consistend with simple types like int. When doing something like int x = (myclass.myproperty = y); x will be set to y

Re: [Vala] Mapping unnamed nested structs from C lib to Vala

2012-07-14 Thread foracc
Am 14.07.2012 09:44, schrieb Luca Bruno: On Sat, Jul 14, 2012 at 12:12 AM, foracc for...@d00m.info wrote: Hey there, I got an unnamed struct nested in another struct in a C library. Like this: typedef struct { int a; struct

[Vala] Mapping unnamed nested structs from C lib to Vala

2012-07-13 Thread foracc
Hey there, I got an unnamed struct nested in another struct in a C library. Like this: typedef struct { int a; struct { int x; int y; } vals; } mystruct; How would I map that to