]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Additionally fallback to "glib:type-name" to retrieve the cname
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 24 Aug 2020 15:36:05 +0000 (17:36 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Sep 2020 14:42:41 +0000 (16:42 +0200)
vala/valagirparser.vala

index e0202b6a47fd645991f657234209b3543e74e6ad..27d5de51dc027a2f135a4bed04283b54588758e8 100644 (file)
@@ -776,6 +776,9 @@ public class Vala.GirParser : CodeVisitor {
                                if (cname == null) {
                                        cname = girdata["c:type"];
                                }
+                               if (cname == null) {
+                                       cname = girdata["glib:type-name"];
+                               }
                        }
                        if (cname == null) {
                                cname = get_default_cname ();