Re: [Vala] Accessing class initialisation function



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]