Modified GtkBuilder schemas to include <binding>

This commit is contained in:
Denis Washington
2012-02-15 22:44:36 +01:00
parent 3dd2c6f4e3
commit b45a20d4e4
2 changed files with 22 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ object = element object {
attribute class { text },
attribute type-func { text } ?,
attribute constructor { text } ?,
(property | signal | child | ANY) *
(property | signal | binding | child | ANY) *
}
property = element property {
@@ -34,6 +34,12 @@ signal = element signal {
empty
}
binding = element binding {
attribute to { text },
attribute from { text },
attribute source { text }
}
child = element child {
attribute type { text } ?,
attribute internal-child { text } ?,

View File

@@ -48,6 +48,7 @@
<choice>
<ref name="property"/>
<ref name="signal"/>
<ref name="binding"/>
<ref name="child"/>
<ref name="ANY"/>
</choice>
@@ -113,6 +114,20 @@
<empty/>
</element>
</define>
<define name="binding">
<element name="binding">
<attribute name="to">
<text/>
</attribute>
<attribute name="from">
<text/>
</attribute>
<attribute name="source">
<text/>
</attribute>
<empty/>
</element>
</define>
<define name="child">
<element name="child">
<optional>