summaryrefslogtreecommitdiffstats
path: root/gi/pygi-struct.c
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2010-04-16 14:35:13 -0400
committerTomeu Vizoso <tomeu@sugarlabs.org>2010-04-16 14:49:59 -0400
commite73b6f6fe8b5f23a2a390ae0a6bbced593ded155 (patch)
tree93ded0379228f51339914e53a9fb41e79f40bd3e /gi/pygi-struct.c
parentfc9ff02e53aacf9e77625c70985e99813544912a (diff)
downloadpygi-e73b6f6fe8b5f23a2a390ae0a6bbced593ded155.tar.gz
pygi-e73b6f6fe8b5f23a2a390ae0a6bbced593ded155.tar.xz
pygi-e73b6f6fe8b5f23a2a390ae0a6bbced593ded155.zip
Allow creating structs with pointers
https://bugzilla.gnome.org/show_bug.cgi?id=603537
Diffstat (limited to 'gi/pygi-struct.c')
-rw-r--r--gi/pygi-struct.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gi/pygi-struct.c b/gi/pygi-struct.c
index b1e81bf..f15a6cd 100644
--- a/gi/pygi-struct.c
+++ b/gi/pygi-struct.c
@@ -65,12 +65,6 @@ _struct_new (PyTypeObject *type,
return NULL;
}
- is_simple = pygi_g_struct_info_is_simple((GIStructInfo *)info);
- if (!is_simple) {
- PyErr_Format(PyExc_TypeError, "cannot create '%s' instances", type->tp_name);
- goto out;
- }
-
size = g_struct_info_get_size((GIStructInfo *)info);
pointer = g_try_malloc0(size);
if (pointer == NULL) {