tests/enum.vala
[app.Builder.js] / tests / enum.vala
index 67f1c84..85a83f3 100644 (file)
@@ -5,9 +5,12 @@
 
 int main (string[] args) {
        Gtk.init(ref args);
-       var x = Type.from_name ("Gtk.Orientation.HORIZONTAL");
-       print("%s\n", x.name ());
-       
+       var type = typeof(Gtk.Box);
+       var  ocl = (ObjectClass) type.class_ref ();
+       var ps = ocl.find_property("orientation");
+       var vt = ps.value_type;
+       print("%s\n", vt.name());
+        
        return 0;
 }