From 6f6e6ab99d47d1211e8f308cc7f2e88efc06503f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 20 May 2015 19:50:04 +0800 Subject: [PATCH] tests/enum.vala tests/enum.vala.c --- tests/enum.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.2