glade-rnc

RELAX NG schemas for Glade files
git clone https://logand.com/git/glade-rnc.git/
Log | Files | Refs | README

glade.rnc (1367B)


      1 # RELAX NG schema for the deprecated glade file format.
      2 # Written by Tomas Hlavaty <tom at logand.com>
      3 # TODO remove unused attributes and verify completenes
      4 start = element glade-interface {
      5    attribute domain { text }?,
      6    element requires {
      7       attribute lib { text },
      8       attribute version { text }?
      9    }*,
     10    widget*
     11 }
     12 widget = element widget {
     13    attribute id { text },
     14    attribute class { text },
     15    attribute type-func { text }?,
     16    attribute constructor { text }?,
     17    property*,
     18    element signal {
     19       attribute name { text },
     20       attribute handler { text },
     21       attribute after { text }?,
     22       attribute swapped { text }?,
     23       attribute object { text }?,
     24       attribute last_modification_time { text }?
     25    }*,
     26    element accelerator {
     27       attribute key { text },
     28       attribute modifiers { text },
     29       attribute signal { text }?
     30    }*,
     31    element accessibility {
     32       element atkproperty {
     33          attribute name { text },
     34          attribute translatable { text }?,
     35          text
     36       }+
     37    }?,
     38    element child {
     39       attribute internal-child { text }?,
     40       (element placeholder { empty }
     41        | (widget,
     42           element packing { property* }?))
     43    }*
     44 }
     45 property = element property {
     46    attribute name { text },
     47    attribute translatable { text }?,
     48    attribute comments { text }?,
     49    attribute context { text }?,
     50    text
     51 }