From edde96c5bec6956bcd5f45edd92c283c7b326724 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Tue, 8 Oct 2013 18:46:44 +0200 Subject: [PATCH] generator: fixed writeable and readable detection --- generator/FieldBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/FieldBase.cs b/generator/FieldBase.cs index 7e18bbb36..353c6c553 100644 --- a/generator/FieldBase.cs +++ b/generator/FieldBase.cs @@ -42,13 +42,13 @@ namespace GtkSharp.Generation { protected virtual bool Readable { get { - return elem.GetAttribute ("readable") != "false"; + return elem.HasAttribute ("readable") && elem.GetAttributeAsBoolean ("readable"); } } protected virtual bool Writable { get { - return elem.GetAttribute ("writeable") != "false"; + return elem.HasAttribute ("writeable") && elem.GetAttributeAsBoolean ("writeable"); } }