diff options
author | Colin Walters <walters@verbum.org> | 2013-04-12 13:31:53 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-04-15 09:26:26 -0400 |
commit | 40b267c0cf1ade076ee9b563405842ae06e34d3d (patch) | |
tree | 196ff5e3bee203cedad84663ca5b5fffd62bc442 /girepository | |
parent | c0e748e1cdf8cf0803266f94c3c5ad154df504a8 (diff) | |
download | gobject-introspection-40b267c0cf1ade076ee9b563405842ae06e34d3d.tar.gz |
girparser: Also honor legacy c:prefix
vala generates this, and we need to honor it now that we're using the
c:prefix as an optimization when searching for gtypes.
https://bugzilla.gnome.org/697759
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/girparser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c index 5aaa6dd0..f96cfb1e 100644 --- a/girepository/girparser.c +++ b/girepository/girparser.c @@ -2872,6 +2872,9 @@ start_element_handler (GMarkupParseContext *context, version = find_attribute ("version", attribute_names, attribute_values); shared_library = find_attribute ("shared-library", attribute_names, attribute_values); cprefix = find_attribute ("c:identifier-prefixes", attribute_names, attribute_values); + /* Backwards compatibility; vala currently still generates this */ + if (cprefix == NULL) + cprefix = find_attribute ("c:prefix", attribute_names, attribute_values); if (name == NULL) MISSING_ATTRIBUTE (context, error, element_name, "name"); |