diff options
Diffstat (limited to 'gir/gimarshallingtests.c')
-rw-r--r-- | gir/gimarshallingtests.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gir/gimarshallingtests.c b/gir/gimarshallingtests.c index 47209507..839b7b3e 100644 --- a/gir/gimarshallingtests.c +++ b/gir/gimarshallingtests.c @@ -2621,6 +2621,9 @@ enum PROP_INT_ }; +static void g_i_marshalling_tests_object_real_method_with_default_implementation ( + GIMarshallingTestsObject *self, gint8 in); + G_DEFINE_TYPE (GIMarshallingTestsObject, g_i_marshalling_tests_object, G_TYPE_OBJECT); static void @@ -2679,6 +2682,8 @@ g_i_marshalling_tests_object_class_init (GIMarshallingTestsObjectClass *klass) g_object_class_install_property (object_class, PROP_INT_, g_param_spec_int ("int", "Integer", "An integer", G_MININT, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT)); + + klass->method_with_default_implementation = g_i_marshalling_tests_object_real_method_with_default_implementation; } @@ -2777,6 +2782,25 @@ g_i_marshalling_tests_object_method_int8_in (GIMarshallingTestsObject *self, gin G_I_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->method_int8_in (self, in); } +/** + * g_i_marshalling_tests_object_method_with_default_implementation: + * @in: (in): + */ +void +g_i_marshalling_tests_object_method_with_default_implementation (GIMarshallingTestsObject *self, gint8 in) +{ + G_I_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->method_with_default_implementation (self, in); +} + +static void +g_i_marshalling_tests_object_real_method_with_default_implementation (GIMarshallingTestsObject *self, gint8 in) +{ + GValue val; + g_value_init (&val, G_TYPE_INT); + g_value_set_int (&val, in); + g_object_set_property (G_OBJECT (self), "int", &val); +} + /** * g_i_marshalling_tests__object_none_return: |