From 98ae37bb5e8dcf745a4897f35ecd036001fa9a12 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 7 Aug 2008 12:09:29 +0000 Subject: clean up missing attribute confusion for boxed types svn path=/branches/gir-compiler/; revision=310 --- tools/girparser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/girparser.c b/tools/girparser.c index 04306dce..d851d1c1 100644 --- a/tools/girparser.c +++ b/tools/girparser.c @@ -427,8 +427,10 @@ start_glib_boxed (GMarkupParseContext *context, deprecated = find_attribute ("deprecated", attribute_names, attribute_values); if (name == NULL) - MISSING_ATTRIBUTE (context, error, element_name, "name"); - else if (typename == NULL || typeinit == NULL) + MISSING_ATTRIBUTE (context, error, element_name, "glib:name"); + else if (typename == NULL) + MISSING_ATTRIBUTE (context, error, element_name, "glib:type-name"); + else if (typeinit == NULL) MISSING_ATTRIBUTE (context, error, element_name, "glib:get-type"); else { -- cgit v1.2.1