[Vala] Question about GHashTable-style foreach

2010-12-09 Thread W. Michael Petullo
I am having trouble with Vala and a GHashTable-style foreach. I have created a Vala API for my library, which defines an interface with a GHashTable-style foreach method. Vapigen / my Vala API file defines this as: public abstract void @foreach(GLib.HFunc func, void *data) When I define a method

[Vala] GINT_TO_POINTER

2010-12-09 Thread W. Michael Petullo
Is there a GINT_TO_POINTER-like capability in Vala? Or, if I need something like this does it mean I am not trying to solve a problem in a Vala way? In C, I often use this macro to place integers into GLib datatypes like GHashTable. -- Mike :wq ___ val

Re: [Vala] GINT_TO_POINTER

2010-12-09 Thread Julian Andres Klode
On Do, 2010-12-09 at 11:40 -0600, W. Michael Petullo wrote: > Is there a GINT_TO_POINTER-like capability in Vala? Or, if I need > something like this does it mean I am not trying to solve a problem in > a Vala way? In C, I often use this macro to place integers into GLib > datatypes like GHashTable

Re: [Vala] Question about GHashTable-style foreach

2010-12-09 Thread Julian Andres Klode
On Do, 2010-12-09 at 11:35 -0600, W. Michael Petullo wrote: > I am having trouble with Vala and a GHashTable-style foreach. I have > created a Vala API for my library, which defines an interface with a > GHashTable-style foreach method. Vapigen / my Vala API file defines > this as: > > public abst

[Vala] Bug in vala

2010-12-09 Thread Erick PĂ©rez Castellanos
Is this a bug ??? I'm using Glib.Settings API, and specifically this: public bool set_strv (string key, [CCode (array_length = false)] string[] value) from that class and when using as it says passing an string array as second parameters I'm getting a warning from the compiler: spider_windo