diff options
author | Tristan Van Berkom <tristanvb@openismus.com> | 2013-03-20 16:33:52 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristanvb@openismus.com> | 2013-04-08 21:19:27 +0900 |
commit | b7da0d21f8ca2f9ec4eccf3a96c57327e0a5d601 (patch) | |
tree | 44238d9bbf5c01671314428cdcedee9c2a92bbab /gtk/gtkbuilder.rng | |
parent | 82583640a275c7d95c185e4ad9eaa95bc37aba1f (diff) | |
download | gtk+-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.rng | 19 |
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"> |