projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30d1b96
)
tests/enum.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 20 May 2015 11:50:04 +0000
(19:50 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 May 2015 11:50:04 +0000
(19:50 +0800)
tests/enum.vala.c
tests/enum.vala
patch
|
blob
|
history
diff --git
a/tests/enum.vala
b/tests/enum.vala
index
724f05f
..
85a83f3
100644
(file)
--- 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;
}