Re: [gnome-db] Gda GdaSet vapi error

On 12 January 2011 17:10, Daniel Espinosa <esodan gmail com> wrote:
The following function have the following C signature:

gboolean            gda_set_set_holder_value            (GdaSet *set,
GError **error,
const gchar *holder_id,
but in vapi is:

public bool set_holder_value (string holder_id) throws GLib.Error;

How can I change update it?

This method is specific because it expects the last argument to be of the correct GdaHolder's type (ie. gchar * for G_TYPE_STRING, gint for G_TYPE_INT, ...). And this is not correctly handled by the automatic toole such as vapigen of GObjectIntrospection generator (as a matter of fact this method is excluded from introspection).

So I suggest that you don't use this method at all from Vala, but do it yourself like:
holder = gda_set_get_holder (...)
value = ...
gda_holder_set_value (holder, value)
free (value)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]