tests/enum.vala
[app.Builder.js] / tests / enum.vala
index 7f5a099..724f05f 100644 (file)
@@ -4,10 +4,13 @@
 
 
 int main (string[] args) {
-       
-       stdout.printf ("%s\n", Type.from_name ("Gtk.Orientation").name ());
-       
+       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 ());
+       }
+        
        return 0;
 }