mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
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
This commit is contained in:
parent
5bea9385b0
commit
2e4e98c978
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user