Re: [Vala] Accessing class initialisation function
- From: James Moschou <james moschou gmail com>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Accessing class initialisation function
- Date: Mon, 12 Jul 2010 20:51:46 +0930
On 12 July 2010 20:12, Frederik <scumm_fredo gmx net> wrote:
Am 12.07.2010 10:53, James Moschou wrote:
Hi,
I'm trying to add key bindings to my custom Clutter.Actor. The
documentations says I need to install them in the class init function
http://docs.clutter-project.org/docs/clutter/stable/clutter-Key-Bindings.html#clutter-Key-Bindings.description
Which is fine in C, but how would you do this in vala?
Cheers,
James
GObject's _class_init is "static construct" in Vala:
class Foo : Object {
static construct {
// ...
}
}
Best regards,
Frederik
Thanks!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]