summaryrefslogtreecommitdiff
path: root/girepository/girnode.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-13 21:44:38 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-13 21:44:38 +0000
commit727b6d41afea07500d85dec8f6f3c4db7ad6db53 (patch)
tree80c0080959c08a6c4aad72cceaa098fd6eefa414 /girepository/girnode.c
parentd6a90b70173d0bc0441a82535ab6643a02a4252d (diff)
downloadgobject-introspection-727b6d41afea07500d85dec8f6f3c4db7ad6db53.tar.gz
Allow get_type to be None, set a get_type for GInitiallyUnowned too.
2008-08-13 Johan Dahlin <johan@gnome.org> * girepository/girnode.c (g_ir_node_get_full_size_internal): * girepository/girparser.c (start_class): * giscanner/glibtransformer.py: Allow get_type to be None, set a get_type for GInitiallyUnowned too. svn path=/trunk/; revision=362
Diffstat (limited to 'girepository/girnode.c')
-rw-r--r--girepository/girnode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/girepository/girnode.c b/girepository/girnode.c
index 7961da37..3d01ef17 100644
--- a/girepository/girnode.c
+++ b/girepository/girnode.c
@@ -710,7 +710,9 @@ g_ir_node_get_full_size_internal (GIrNode *parent, GIrNode *node)
size += ALIGN_VALUE (strlen (iface->parent) + 1, 4);
size += ALIGN_VALUE (strlen (node->name) + 1, 4);
size += ALIGN_VALUE (strlen (iface->gtype_name) + 1, 4);
- size += ALIGN_VALUE (strlen (iface->gtype_init) + 1, 4);
+ if (iface->gtype_init)
+ size += ALIGN_VALUE (strlen (iface->gtype_init) + 1, 4);
+ size += ALIGN_VALUE ( + 1, 4);
size += 2 * (n + (n % 2));
for (l = iface->members; l; l = l->next)