[vala] GIR parser: Fix case for cprefix
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] GIR parser: Fix case for cprefix
- Date: Wed, 8 Jul 2009 11:04:08 +0000 (UTC)
commit ff781d2ea864c3fe8c2afe0a134544b2334104c1
Author: Jordan Yelloz <jordan yelloz gmail com>
Date: Fri Jun 19 00:59:14 2009 -0700
GIR parser: Fix case for cprefix
vapigen/valagirparser.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapigen/valagirparser.vala b/vapigen/valagirparser.vala
index 54d09c1..820d1f6 100644
--- a/vapigen/valagirparser.vala
+++ b/vapigen/valagirparser.vala
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]