tests/enum.vala
[app.Builder.js] / tests / enum.vala
index cee8ab8..85a83f3 100644 (file)
@@ -4,10 +4,13 @@
 
 
 int main (string[] args) {
-       var x = Type.from_name ("Gtk");
-       print("%s\n", x.name ());
-       
+       Gtk.init(ref args);
+       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;
 }