On 12 January 2011 17:10, Daniel Espinosa <[email protected]> wrote:

> The following function have the following C signature:
>
> gboolean 
> <http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean> 
>            gda_set_set_holder_value 
> <http://library.gnome.org/devel/libgda/stable/GdaSet.html#gda-set-set-holder-value>
>             (*GdaSet 
> <http://library.gnome.org/devel/libgda/stable/GdaSet.html> *set*,
>
>                                                          *GError 
> <http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError>
>  **error*,
>
>                                                          *const gchar 
> <http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#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)

Regards,

Vivien
_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Reply via email to