From 54fae7ae44d06bd920816004a686c1e17751cb54 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 12 Jul 2017 08:42:56 +0900 Subject: Imported Upstream version 3.15.0 Change-Id: I02b859dff581f456d759a90a2aea3eeec391e2ff Signed-off-by: DongHun Kwak --- gi/pygi-info.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gi/pygi-info.c') diff --git a/gi/pygi-info.c b/gi/pygi-info.c index 4df3359..8e0892a 100644 --- a/gi/pygi-info.c +++ b/gi/pygi-info.c @@ -2167,9 +2167,16 @@ _wrap_g_union_info_get_methods (PyGIBaseInfo *self) return _make_infos_tuple (self, g_union_info_get_n_methods, g_union_info_get_method); } +static PyObject * +_wrap_g_union_info_get_size (PyGIBaseInfo *self) +{ + return PYGLIB_PyLong_FromSize_t (g_union_info_get_size (self->info)); +} + static PyMethodDef _PyGIUnionInfo_methods[] = { { "get_fields", (PyCFunction) _wrap_g_union_info_get_fields, METH_NOARGS }, { "get_methods", (PyCFunction) _wrap_g_union_info_get_methods, METH_NOARGS }, + { "get_size", (PyCFunction) _wrap_g_union_info_get_size, METH_NOARGS }, { NULL, NULL, 0 } }; -- cgit v1.2.3