generator: fixed writeable and readable detection

This commit is contained in:
Stephan Sundermann 2013-10-08 18:46:44 +02:00 committed by Andrés G. Aragoneses
parent c53147c1c4
commit edde96c5be

View File

@ -42,13 +42,13 @@ namespace GtkSharp.Generation {
protected virtual bool Readable { protected virtual bool Readable {
get { get {
return elem.GetAttribute ("readable") != "false"; return elem.HasAttribute ("readable") && elem.GetAttributeAsBoolean ("readable");
} }
} }
protected virtual bool Writable { protected virtual bool Writable {
get { get {
return elem.GetAttribute ("writeable") != "false"; return elem.HasAttribute ("writeable") && elem.GetAttributeAsBoolean ("writeable");
} }
} }