[gobject-introspection/ebassi/property-annotation: 9/17] tests: Add a Regress test for the property accessors annotations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/ebassi/property-annotation: 9/17] tests: Add a Regress test for the property accessors annotations
- Date: Tue, 27 Jul 2021 10:45:31 +0000 (UTC)
commit 143b183d9534c0ce55fb84c8fbf5f3aaa2ae1be5
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jun 17 14:16:32 2021 +0100
tests: Add a Regress test for the property accessors annotations
tests/scanner/Regress-1.0-expected.gir | 6 +++++-
tests/scanner/regress.c | 8 ++++----
2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index 0e7142ad..bc8eb9f2 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -4791,7 +4791,11 @@ raise an error.</doc>
<type name="utf8"/>
</array>
</property>
- <property name="string" writable="1" transfer-ownership="none">
+ <property name="string"
+ writable="1"
+ transfer-ownership="none"
+ setter="set_string"
+ getter="get_string">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="write-only"
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index b8e07a9d..26285d24 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -2690,7 +2690,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
/**
- * TestObj:int:
+ * RegressTestObj:int:
*/
pspec = g_param_spec_int ("int",
"int property",
@@ -2704,7 +2704,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
pspec);
/**
- * TestObj:float:
+ * RegressTestObj:float:
*/
pspec = g_param_spec_float ("float",
"float property",
@@ -2718,7 +2718,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
pspec);
/**
- * TestObj:double:
+ * RegressTestObj:double:
*/
pspec = g_param_spec_double ("double",
"double property",
@@ -2732,7 +2732,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
pspec);
/**
- * TestObj:string:
+ * RegressTestObj:string: (setter set_string) (getter get_string)
*/
pspec = g_param_spec_string ("string",
"string property",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]