[Vala] Inserting GTypes into a Clutter.ListModel



Hi,

trying to set up a Clutter.ListModel like according to [1]:

var model = new Clutter.ListModel (3, G_TYPE_STRING, "string_a",
G_TYPE_STRING, "string_b",
                                      G_TYPE_INT,    "id");

failed as the GTypes are not recognized. Any idea how to do that?

Thanks

[1] http://valadoc.org/clutter-1.0/Clutter.ListModel.ListModel.html






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