Re: [Vala] Vala dealing with const paramaters

2009-10-30 Thread Gordon Allott
On Tue, 2009-10-27 at 17:43 +0100, Jürg Billeter wrote: valac will use const for this parameter if the struct is annotated as [Immutable] in the bindings. If `const ClutterActorBox *` is used for all (or most) input parameters in the C API, we should add the [Immutable] attribute to the

Re: [Vala] Vala dealing with const paramaters

2009-10-30 Thread Frederik
Hi, the callback delegate definition in 'clutter-1.0.vapi' is wrong. It must be: [CCode (cheader_filename = clutter/clutter.h)] public delegate void Callback (Clutter.Actor actor); The Clutter bindings shipped with Vala are not really usable at the moment.

[Vala] Vala dealing with const paramaters

2009-10-27 Thread Gordon Allott
Hi, I'm trying to subclass a Clutter.Actor, which happens to have methods such as void (* allocate) (ClutterActor *actor, const ClutterActorBox *box, ClutterAllocationFlags flags); Which is okay, apart

Re: [Vala] Vala dealing with const paramaters

2009-10-27 Thread Jürg Billeter
On Tue, 2009-10-27 at 16:24 +, Gordon Allott wrote: Hi, I'm trying to subclass a Clutter.Actor, which happens to have methods such as void (* allocate) (ClutterActor *actor, const ClutterActorBox *box,