[vala] girparser: Set array_length_cname



commit 288baf24219ed0e3ad7f15b44ef7b2369bb80c74
Author: Jürg Billeter <j bitron ch>
Date:   Wed Sep 15 20:09:16 2010 +0200

    girparser: Set array_length_cname
    
    Fixes bug 629691.

 vala/valagirparser.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 2d7ab04..f1730de 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1226,6 +1226,7 @@ public class Vala.GirParser : CodeVisitor {
 						continue;
 					}
 					info.param.carray_length_parameter_position = parameters[info.array_length_idx].vala_idx;
+					info.param.set_array_length_cname (parameters[info.array_length_idx].param.name);
 				}
 				if (info.param.variable_type is ArrayType && info.array_length_idx == -1) {
 					info.param.no_array_length = true;
@@ -1257,7 +1258,7 @@ public class Vala.GirParser : CodeVisitor {
 
 	Method parse_method (string element_name) {
 		return this.parse_function (element_name) as Method;
-     }
+	}
 
 	Signal parse_signal () {
 		start_element ("glib:signal");



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