]> 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>
Mon, 24 Aug 2020 15:46:59 +0000 (17:46 +0200)
vala/valagirparser.vala

index 1de6f0a31b66e40702c22fc74239f2aeb07d8900..5bd8406c745518701c2e894ce411685529a38942 100644 (file)
@@ -777,6 +777,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 ();