Re: [gnome-db] [Vala] Gda GdaSet vapi error



في ر، 12-01-2011 عند 10:10 -0600 ، كتب Daniel Espinosa:
> 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?
You need to add something like :

gda_set_set_holder_value ellipsis="1"

to the metadata file (and regenerate the vapi). I'm not sure it will
work as there is no fixed convention for varargs methods throwing
errors, but I think this is your best bet.

HTH,
Abderrahim



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