Re: [Vala] Signal questions, Compilation problem



Thanks for your quick help!

     Welcome to the vala development list.  Vala is very promising, but it's
still incomplete, especially with respect to the language bindings.   I'm
still discovering how to make bindings files because I'm trying to create
bindings to parts of the C standard library that are not supported yet.  I
would recommend you try your hand at adding the signals into the
gtk-2.0.vala file in the vapi directory.  When you get them added, I'm sure
Jurg wouldn't mind you sending him a patch file with the code you added, to
assist him in developing the bindings.

I've tried adding the signals to the interface but this had no effect.
Instead I had to add the signals to the actual Entry class. Patch
attached, but I don't think this is right.

     To boot strap the version out of subversion using 0.0.3 requires a few
minor changes to the subversion code because of some changes Jurg made to
the vala compiler code.  These changes will not be necessary when he
releases the 0.0.4 code.

Thanks, everything is working fine now.

I have one more question regarding signals: I'm currently writing
bindings for gtksourceview and the SourceBuffer class has functions
called "can_redo" and "can_undo" as well as signals called "can-redo"
and "can-undo". This obviously doesn't work if I name the signals
can_redo and can_undo, so is there a way to chose a different name but
still tell vala about the correct C signal name? I tried using the @
char like some of the functions do, but that made no difference.


Daniel

Attachment: editable_signals.patch
Description: Text Data



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