summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilder.rng
diff options
context:
space:
mode:
authorTristan Van Berkom <tristanvb@openismus.com>2013-03-20 16:33:52 +0900
committerTristan Van Berkom <tristanvb@openismus.com>2013-04-08 21:19:27 +0900
commitb7da0d21f8ca2f9ec4eccf3a96c57327e0a5d601 (patch)
tree44238d9bbf5c01671314428cdcedee9c2a92bbab /gtk/gtkbuilder.rng
parent82583640a275c7d95c185e4ad9eaa95bc37aba1f (diff)
downloadgtk+-b7da0d21f8ca2f9ec4eccf3a96c57327e0a5d601.tar.gz
GtkBuilder: Add private _gtk_builder_extend_with_template()
This adds the definition of the <template> tag with some documentation on the variant of the format. _gtk_builder_extend_with_template() is to be used while GtkContainer builds from composite templates. A couple of error codes are also added to handle a few new possible failure cases. DTD Files gtkbuilder.rnc and gtkbuilder.rng have been updated to include the new <template> tag and it's attributes.
Diffstat (limited to 'gtk/gtkbuilder.rng')
-rw-r--r--gtk/gtkbuilder.rng19
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk/gtkbuilder.rng b/gtk/gtkbuilder.rng
index e36d05194a..eee698a607 100644
--- a/gtk/gtkbuilder.rng
+++ b/gtk/gtkbuilder.rng
@@ -11,6 +11,7 @@
<choice>
<ref name="requires"/>
<ref name="object"/>
+ <ref name="template"/>
<ref name="menu"/>
</choice>
</zeroOrMore>
@@ -54,6 +55,24 @@
</zeroOrMore>
</element>
</define>
+ <define name="template">
+ <element name="template">
+ <attribute name="class">
+ <text/>
+ </attribute>
+ <attribute name="parent">
+ <text/>
+ </attribute>
+ <zeroOrMore>
+ <choice>
+ <ref name="property"/>
+ <ref name="signal"/>
+ <ref name="child"/>
+ <ref name="ANY"/>
+ </choice>
+ </zeroOrMore>
+ </element>
+ </define>
<define name="property">
<element name="property">
<attribute name="name">