Re: [Vala] [gnome-db] Gda GdaSet vapi error
- From: Vivien Malerba <vmalerba gmail com>
- To: Daniel Espinosa <esodan gmail com>
- Cc: gnome-db-list gnome org, vala-list gnome org
- Subject: Re: [Vala] [gnome-db] Gda GdaSet vapi error
- Date: Wed, 12 Jan 2011 17:54:15 +0100
On 12 January 2011 17:10, Daniel Espinosa <esodan gmail com> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]