summaryrefslogtreecommitdiff
path: root/girepository/girparser.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-10-26 11:12:26 -0400
committerColin Walters <walters@verbum.org>2010-11-12 16:00:10 -0500
commitc8940a11562fd7b888595c6298e39836192fa3d7 (patch)
tree573d0afbceecc8bd0360e79b11666095470bd8d8 /girepository/girparser.c
parente876ad4fe073de44fc809400b166d6c4726f08f4 (diff)
downloadgobject-introspection-c8940a11562fd7b888595c6298e39836192fa3d7.tar.gz
Add support for gunichar in typelib
Some API such as gtk_text_iter_get_char returns an individual "gunichar"; we should support this. https://bugzilla.gnome.org/show_bug.cgi?id=633197
Diffstat (limited to 'girepository/girparser.c')
-rw-r--r--girepository/girparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 42525ecd..0e31e9f6 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -396,6 +396,7 @@ static BasicTypeInfo basic_types[] = {
{ "GType", GI_TYPE_TAG_GTYPE, 0 },
{ "utf8", GI_TYPE_TAG_UTF8, 1 },
{ "filename", GI_TYPE_TAG_FILENAME,1 },
+ { "gunichar", GI_TYPE_TAG_UNICHAR, 0 },
};
static const BasicTypeInfo *
@@ -579,7 +580,7 @@ parse_type_internal (GIrModule *module,
if (next)
*next = (char*)str;
- g_assert (type->tag >= 0 && type->tag <= GI_TYPE_TAG_ERROR);
+ g_assert (type->tag >= 0 && type->tag < GI_TYPE_TAG_N_TYPES);
g_free (temporary_type);
return type;