projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/enum.vala
[app.Builder.js]
/
tests
/
enum.vala
diff --git
a/tests/enum.vala
b/tests/enum.vala
index
6b6159d
..
7a7a9ed
100644
(file)
--- a/
tests/enum.vala
+++ b/
tests/enum.vala
@@
-1,11
+1,16
@@
// compile
// compile
-// valac
plugindialog.vala ../src/Builder4/DialogPluginWebkit.vala ../src/Builder4/FakeServer.vala ../src/Application.vala ../src/JsRender/RooDatabase.vala --pkg libgda-5.0 --pkg json-glib-1.0 --pkg gtk+-3.0 --pkg gee-1.0 --pkg webkit2gtk-4.0 --pkg libxml-2.0 -o /tmp/plugtest
+// valac
--pkg gtk+-3.0 enum.vala -o /tmp/enum
// ??--pkg javascriptcore \
int main (string[] args) {
// ??--pkg javascriptcore \
int main (string[] args) {
+ 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 : %s\n", vt.name(), vt.is_enum() ? "Y" : "N");
-
-
return 0;
}
return 0;
}
+