]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GIR parser: Fix case for cprefix ff781d2ea864c3fe8c2afe0a134544b2334104c1
authorJordan Yelloz <jordan.yelloz@gmail.com>
Fri, 19 Jun 2009 07:59:14 +0000 (00:59 -0700)
committerJürg Billeter <j@bitron.ch>
Wed, 8 Jul 2009 11:03:06 +0000 (12:03 +0100)
vapigen/valagirparser.vala

index 54d09c1a4700b9275f3cc90d489a808b12316de6..820d1f6bb5524dfef513b7b8eeddb81861651e80 100644 (file)
@@ -191,8 +191,8 @@ public class Vala.GirParser : CodeVisitor {
 
                string? cprefix = reader.get_attribute ("c:prefix");
                if (cprefix != null) {
-                       ns.add_cprefix (cprefix.up ());
-                       ns.set_lower_case_cprefix (cprefix + "_");
+                       ns.add_cprefix (cprefix);
+                       ns.set_lower_case_cprefix (Symbol.camel_case_to_lower_case (cprefix) + "_");
                }
 
                foreach (string c_header in cheader_filenames) {