Re: [Vala] Vapi help..
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: Shawn Ferris <shawn ferris gmail com>
- Cc: Vala List <vala-list gnome org>
- Subject: Re: [Vala] Vapi help..
- Date: Sat, 24 Oct 2009 15:59:46 +0100
Hi,
2009/10/23 Shawn Ferris <shawn ferris gmail com>:
Hi All --
I've been trying to troubleshoot a problem with the libgda vapi and I just
can't figure out where it's coming from.. decided it was time to ask. I'm
sure this is something stupid, but I can't find it.
The vapi has this:
public GLib.Value get_value_at (int col, int row) throws GLib.Error;
Which looks good according to the header from libgda. But the generated c
is:
GValue _tmp10_;
GValue _tmp9_ = {0};
_tmp10_ = (gda_data_model_get_value_at (self->res, 1, 1, &_tmp9_,
&_inner_error_), _tmp9_);
The problem is that &_tmp9_ is being injected into the arguments and I can't
figure out how to prevent it. gda_data_model_get_value_at should return the
value rather then set it through a pointer.
Short answer : I think GLib.Value? should do the trick. (and from
reading the doc, I think it should also be unowned).
Long answer :
I think this has something to do with bug 534781, I don't know about
"the usual way" in the description, but you can find the reason of
this behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=534781
HTH,
Abderrahim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]