Re: [Vala] Gda GdaSet vapi error

Abderrahim Kitouni <[email protected]>
Newsgroups gmane.comp.programming.vala,gmane.comp.gnome.db
Message-ID <1294937622.2812.3.camel@abderrahim>
في ر، 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

_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.