From 57ea279cebd1d475c77155af233b408618681576 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 29 Jan 2018 14:07:35 -0300 Subject: [PATCH] generator: Fix accessing EqualityName for GArray*s --- Source/Tools/GapiCodegen/StructField.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Tools/GapiCodegen/StructField.cs b/Source/Tools/GapiCodegen/StructField.cs index 9fdb330f2..9503f5ed4 100644 --- a/Source/Tools/GapiCodegen/StructField.cs +++ b/Source/Tools/GapiCodegen/StructField.cs @@ -89,7 +89,9 @@ namespace GtkSharp.Generation { string wrapped_name = SymbolTable.Table.MangleName (CName); IGeneratable gen = table [CType]; - if (IsArray || gen is IAccessor) + if (IsArray && IsNullTermArray) + return StudlyName + "Ptr"; + else if (IsArray || gen is IAccessor) return Access == "public" ? StudlyName : Name; else if (IsBitfield) return Name;