[gtk+/gtkbuilder-gbinding: 100/101] Modified GtkBuilder schemas to include <binding>
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtkbuilder-gbinding: 100/101] Modified GtkBuilder schemas to include <binding>
- Date: Wed, 15 Feb 2012 21:47:07 +0000 (UTC)
commit b45a20d4e4801d2fe12a6147303d6354fb69cc1b
Author: Denis Washington <denisw online de>
Date: Wed Feb 15 22:44:36 2012 +0100
Modified GtkBuilder schemas to include <binding>
gtk/gtkbuilder.rnc | 8 +++++++-
gtk/gtkbuilder.rng | 15 +++++++++++++++
2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbuilder.rnc b/gtk/gtkbuilder.rnc
index a2b4032..e4be70d 100644
--- a/gtk/gtkbuilder.rnc
+++ b/gtk/gtkbuilder.rnc
@@ -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 } ?,
diff --git a/gtk/gtkbuilder.rng b/gtk/gtkbuilder.rng
index e36d051..5c8150d 100644
--- a/gtk/gtkbuilder.rng
+++ b/gtk/gtkbuilder.rng
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]