Update the gschema dtd to include flags

This commit is contained in:
Matthias Clasen
2010-11-05 13:56:42 -04:00
parent bc793255bc
commit d1b00fe23d

View File

@@ -6,10 +6,14 @@
path CDATA #IMPLIED path CDATA #IMPLIED
gettext-domain CDATA #IMPLIED > gettext-domain CDATA #IMPLIED >
<!-- defines an enumerated type --> <!-- enumerated and flags types -->
<!-- each value element maps a nick to a numeric value --> <!-- each value element maps a nick to a numeric value -->
<!ELEMENT enum (value*) > <!ELEMENT enum (value*) >
<!ATTLIST enum id CDATA #REQUIRED > <!ATTLIST enum id CDATA #REQUIRED >
<!ELEMENT flags (value*) >
<!ATTLIST flags id CDATA #REQUIRED >
<!ELEMENT value EMPTY > <!ELEMENT value EMPTY >
<!-- nick must be at least 2 characters long --> <!-- nick must be at least 2 characters long -->
<!-- value must be parsable as a 32-bit integer --> <!-- value must be parsable as a 32-bit integer -->
@@ -19,11 +23,13 @@
<!ELEMENT key (default|summary?|description?|range?|choices?|aliases?) > <!ELEMENT key (default|summary?|description?|range?|choices?|aliases?) >
<!-- name can only contain lowercase letters, numbers and '-' --> <!-- name can only contain lowercase letters, numbers and '-' -->
<!-- type must be a GVariant type string --> <!-- type must be a GVariant type string -->
<!-- enum must be the id of an enum that has been defined earlier --> <!-- enum must be the id of an enum type that has been defined earlier -->
<!-- exactly one of enum or type must be given --> <!-- flags must be the id of a flags type that has been defined earlier -->
<!ATTLIST key name CDATA #REQUIRED <!-- exactly one of type, enum or flags must be given -->
type CDATA #IMPLIED <!ATTLIST key name CDATA #REQUIRED
enum CDATA #IMPLIED > type CDATA #IMPLIED
enum CDATA #IMPLIED
flags CDATA #IMPLIED >
<!-- the default value is specified a a serialized GVariant, <!-- the default value is specified a a serialized GVariant,
i.e. you have to include the quotes when specifying a string --> i.e. you have to include the quotes when specifying a string -->