diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-11 19:46:07 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-11 19:46:07 +0200 |
commit | 1f5c81048d762f4866137e1e3221d85b9b611d8b (patch) | |
tree | 93590a583056bb8504301a6f68eace629d6c30ef /tests/scanner/regress.c | |
parent | c837a1d7dba5388b89d3b1b23139f0d4d2558893 (diff) | |
download | gobject-introspection-1f5c81048d762f4866137e1e3221d85b9b611d8b.tar.gz |
regress: implement the getter/setter for the new byte-array property.
It was added as part of !25 but without any implementation.
This made instantiating TestObject fail which we do in the pygobject test suite.
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r-- | tests/scanner/regress.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 2302209f..330a8d16 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -2165,6 +2165,10 @@ regress_test_obj_set_property (GObject *object, self->name_conflict = g_value_get_int (value); break; + case PROP_TEST_OBJ_BYTE_ARRAY: + self->byte_array = g_value_get_boxed (value); + break; + default: /* We don't have any other property... */ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); @@ -2226,6 +2230,10 @@ regress_test_obj_get_property (GObject *object, g_value_set_int (value, self->name_conflict); break; + case PROP_TEST_OBJ_BYTE_ARRAY: + g_value_set_boxed (value, self->byte_array); + break; + default: /* We don't have any other property... */ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); |