diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2023-01-08 14:31:41 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2023-01-08 14:36:47 +0000 |
commit | 8c6dc5fa17874a9b6fefee07a8b69e4430975101 (patch) | |
tree | ed25107c79733390f297f8b4ed7d94a84b71d4a4 /tests/scanner/regress.c | |
parent | 790bd8a474c2820564afc57a60f20f3deb4e0d42 (diff) | |
download | gobject-introspection-8c6dc5fa17874a9b6fefee07a8b69e4430975101.tar.gz |
Add `default-value` annotation
An escape hatch to specify a freeform string for the default value of a
property.
Fixes: #4
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r-- | tests/scanner/regress.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index e21997de..15430bd1 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -2643,7 +2643,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass) pspec); /** - * RegressTestObj:list: (type GLib.List(utf8)) (transfer none) + * RegressTestObj:list: (type GLib.List(utf8)) (transfer none) (default-value NULL) */ pspec = g_param_spec_pointer ("list", "GList property", @@ -2745,7 +2745,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass) /** - * TestObj:gtype: + * RegressTestObj:gtype: (default-value G_TYPE_INVALID) */ pspec = g_param_spec_gtype ("gtype", "GType property", @@ -2757,7 +2757,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass) pspec); /** - * TestObj:name-conflict: + * RegressTestObj:name-conflict: */ pspec = g_param_spec_int ("name-conflict", "name-conflict property", @@ -2771,7 +2771,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass) pspec); /** - * TestObj:byte-array: + * RegressTestObj:byte-array: */ pspec = g_param_spec_boxed ("byte-array", "GByteArray property", @@ -2783,7 +2783,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass) pspec); /** - * TestObj:write-only: + * RegressTestObj:write-only: */ pspec = g_param_spec_boolean ("write-only", "Write-only property", "A write-only bool property that resets the value of TestObj:int to 0 when true", |