[Vala] generically creating new instances from types



How do I create a new instance of a GType? The equivalent of:

g_object_new(FOO_TYPE_BAR, "foo", foo_value, "bar", bar_value, NULL);

in C. It's probably possible but escaping me.

Thanks,
Michael


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