[Vala] uint8[] GObject properties

2011-01-20 Thread W. Michael Petullo
I have written a GObject class that has the following property: [...] private uint8[] _thumbnail; [...] public uint8[] thumbnail { get { return _thumbnail; } set { _thumbnail = value; } } [...] When I run my application, I see: (lt-dpapview:13731): GLib-GObject-WARNING **: g_obje

Re: [Vala] vala-gen-introspect struct vs. object

2011-01-04 Thread W. Michael Petullo
> How does vala-gen-introspect differentiate between a basic struct and > an object? I am trying to generate a Vala API file for an object, but > vala-gen-introspect is classifying it as a struct: > > > > > > > >

[Vala] vala-gen-introspect struct vs. object

2011-01-03 Thread W. Michael Petullo
How does vala-gen-introspect differentiate between a basic struct and an object? I am trying to generate a Vala API file for an object, but vala-gen-introspect is classifying it as a struct:

[Vala] Multiple namespaces

2010-12-13 Thread W. Michael Petullo
Is it possible to use vapigen to produce a Vala API file that contains two or more top-level namespaces (and associated symbols for each)? I can't find an example of someone doing this. Vala allows multiple namespaces in one file and even nested namespaces. What if a C GObject-based library contain

[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

[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] Question about vala-gen-introspect

2010-12-06 Thread W. Michael Petullo
I am trying to figure out how to generate a Vala API file for libdmapsharing, http://www.flyn.org/projects/libdmapsharing/. This library may be used to create DAAP and DPAP servers and clients. I have read the document at http://live.gnome.org/Vala/Bindings. I am using vala-0.10.0 and have tried t