Re: [Vala] MarkupParser binding



Hi,

On Tue, 2009-12-08 at 19:35 +0100, Abderrahim Kitouni wrote:
Hi,

2009/12/8 Andrea Del Signore <sejerpz tin it>:
Hi Michael,

today I had to resolve the same problem and I think that the
MarkupParser bindings are wrong.
[...]
There is also another problem about the user_data field that in the
current bindings is wrongly assumed to be the MarkupParser instance
pointer but instead it is the user_data parameter passed to the
MarkupParserContext class.

That's exactly what I meant when I said
As for MarkupParser, I don't see a way to fix it apart from marking
the delegates as has_target=false and passing the user_data manually
(in fact actually writing C code but compiling with valac since you
won't be able to use instance methods).

I missed your mail, with it I would solve my problems more quickly!

Not very Vala-ish, but solves the problem.


I agree, it isn't very Vala-ish, but like you I prefer something that
works to something that is nice but doesn't work at all :)

What would solve the problem a bit better is to have a
MarkupParserContext constructor that takes multiple delegates rather
than packing them in a struct.


Yep, can this  be included in the glib vapi like the string length or
replace methods?

Regards,
Abderrahim

Ciao,
        Andrea




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