From: Alan Knowles Date: Wed, 20 May 2015 11:50:04 +0000 (+0800) Subject: tests/enum.vala X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=6f6e6ab99d47d1211e8f308cc7f2e88efc06503f tests/enum.vala tests/enum.vala.c --- diff --git a/tests/enum.vala b/tests/enum.vala index 724f05feb..85a83f35d 100644 --- a/tests/enum.vala +++ b/tests/enum.vala @@ -7,9 +7,9 @@ int main (string[] args) { Gtk.init(ref args); var type = typeof(Gtk.Box); var ocl = (ObjectClass) type.class_ref (); - foreach (ParamSpec spec in ocl.list_properties ()) { - stdout.printf ("%s\n", spec.get_name ()); - } + var ps = ocl.find_property("orientation"); + var vt = ps.value_type; + print("%s\n", vt.name()); return 0; }