Re: [Vala] Accessing class initialisation function
- From: Frederik <scumm_fredo gmx net>
- To: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Accessing class initialisation function
- Date: Mon, 12 Jul 2010 12:42:15 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]