[vala] girparser: Fix applying metadata to glib:boxed



commit 06025a78a857db7176ffad64fbd17a0fe3c68d41
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun Jul 24 20:25:58 2011 +0200

    girparser: Fix applying metadata to glib:boxed

 vala/valagirparser.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 8495ab2..e7c2ca6 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1206,6 +1206,9 @@ public class Vala.GirParser : CodeVisitor {
 		var selector = reader.name;
 		var child_name = reader.get_attribute ("name");
 		if (child_name == null) {
+			child_name = reader.get_attribute ("glib:name");
+		}
+		if (child_name == null) {
 			return Metadata.empty;
 		}
 		selector = selector.replace ("-", "_");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]