mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-29 02:50:04 +01:00
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
This commit is contained in:
parent
de7d01898e
commit
3e28196a98
@ -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)
|
||||
|
@ -1304,7 +1304,7 @@ start_class (GMarkupParseContext *context,
|
||||
MISSING_ATTRIBUTE (context, error, element_name, "name");
|
||||
else if (typename == NULL)
|
||||
MISSING_ATTRIBUTE (context, error, element_name, "glib:type-name");
|
||||
else if (typeinit == NULL)
|
||||
else if (typeinit == NULL && strcmp (typename, "GObject"))
|
||||
MISSING_ATTRIBUTE (context, error, element_name, "glib:get-type");
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user