generator: fixed writeable and readable detection
This commit is contained in:
parent
c53147c1c4
commit
edde96c5be
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue