[gtk+/composite-templates-new: 5/26] Updated DTDs to include 'template'



commit 1582288753b2f28c03c22bef69024f8f877770f5
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Tue Mar 26 16:15:25 2013 +0900

    Updated DTDs to include 'template'
    
    Updated gtkbuilder.rnc and gtkbuilder.rng to reflect the
    new <template> tag and it's attributes.

 gtk/gtkbuilder.rnc |   10 ++++++++--
 gtk/gtkbuilder.rng |   19 +++++++++++++++++++
 2 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbuilder.rnc b/gtk/gtkbuilder.rnc
index a2b4032..635fd4f 100644
--- a/gtk/gtkbuilder.rnc
+++ b/gtk/gtkbuilder.rnc
@@ -1,6 +1,6 @@
 start = element interface {
   attribute domain { text } ?,
-  ( requires | object | menu ) *
+  ( requires | object | template | menu ) *
 }
 
 requires = element requires {
@@ -16,6 +16,12 @@ object = element object {
   (property | signal | child | ANY) *
 }
 
+template = element template {
+  attribute class { text },
+  attribute parent { text },
+  (property | signal | child | ANY) *
+}
+
 property = element property {
   attribute name { text },
   attribute translatable { "yes" | "no" } ?,
@@ -76,7 +82,7 @@ section = element section {
   (attribute_ | item | submenu | section) *
 }
 
-ANY = element * - (interface | requires | object | property | signal | child | menu | item | attribute | 
link | submenu | section) {
+ANY = element * - (interface | requires | object | template | property | signal | child | menu | item | 
attribute | link | submenu | section) {
   attribute * { text } *,
   (ALL * & text ?)
 }
diff --git a/gtk/gtkbuilder.rng b/gtk/gtkbuilder.rng
index e36d051..eee698a 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">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]