A describes a
A "schema" describes a key-value pair in a GConf database. It may include information such as default value and value type, as well as documentation describing the pair, the name of the application that created the pair, etc.
A <g-conf-schema>
duplicates some of the information about the value it
describes, such as type information. In these cases, the type information
provided describes what the type of the value should be, not what the
type actually is.
<g-conf-schema>
)Creates a new
<g-conf-schema>
.
- ret
- newly allocated
<g-conf-schema>
<g-conf-schema>
) ⇒ (ret mchars
)Returns the locale for a
<g-conf-schema>
. The returned string is not a copy, so don't try to free it. It is "owned" by the<g-conf-schema>
and will be destroyed when the<g-conf-schema>
is destroyed.
- schema
- a
<g-conf-schema>
- ret
- the locale
<g-conf-schema>
) ⇒ (ret mchars
)Returns the short description for a
<g-conf-schema>
. The returned string is not a copy, don't try to free it. It is "owned" by the<g-conf-schema>
and will be destroyed when the<g-conf-schema>
is destroyed.
- schema
- a
<g-conf-schema>
.- ret
- the short description.
<g-conf-schema>
) ⇒ (ret mchars
)Returns the long description for a
<g-conf-schema>
. The returned string is not a copy, don't try to free it. It is "owned" by the<g-conf-schema>
and will be destroyed when the<g-conf-schema>
is destroyed.
- schema
- a
<g-conf-schema>
- ret
- the long description.
<g-conf-schema>
) ⇒ (ret mchars
)Returns the owner of a
<g-conf-schema>
. The returned string is not a copy, don't try to free it. It is "owned" by the<g-conf-schema>
and will be destroyed when the<g-conf-schema>
is destroyed.
- schema
- a
<g-conf-schema>
.- ret
- the owner.
<g-conf-schema>
) ⇒ (ret <g-conf-value>
)Returns the default value of the entry that is described by a
<g-conf-schema>
.
- schema
- a
<g-conf-schema>
.- ret
- the default value of the entry.
<g-conf-schema>
) ⇒ (ret <g-conf-value-type>
)Returns the default type of the first member of the pair in the entry (which should be of type ‘GCONF_VALUE_PAIR’) described by schema.
- schema
- a
<g-conf-schema>
.- ret
- the type of the first member of the pair element of the entry.
<g-conf-schema>
) ⇒ (ret <g-conf-value-type>
)Returns the default type of the second member of the pair in the entry (which should be of type ‘GCONF_VALUE_PAIR’) described by schema.
- schema
- a
<g-conf-schema>
.- ret
- the type of the second member of the pair element of the entry.
<g-conf-schema>
) ⇒ (ret <g-conf-value-type>
)Returns the default type of the list elements of the entry (which should be of default type ‘GCONF_VALUE_LIST’) described by schema.
- schema
- ret
<g-conf-schema>
) (type <g-conf-value-type>
)Sets the
<g-conf-value-type>
of the<g-conf-schema>
to type.
- sc
- a
<g-conf-schema>
.- type
- the type.
<g-conf-schema>
) (locale mchars
)Sets the locale for a
<g-conf-schema>
to locale. locale is copied.
- sc
- a
<g-conf-schema>
.- locale
- the locale.
<g-conf-schema>
) (desc mchars
)Sets the short description of a
<g-conf-schema>
to desc. desc is copied.
- sc
- a
<g-conf-schema>
.- desc
- the short description.
<g-conf-schema>
) (desc mchars
)Sets the long description of a
<g-conf-schema>
to desc. desc is copied.
- sc
- a
<g-conf-schema>
.- desc
- the long description.
<g-conf-schema>
) (owner mchars
)Sets the "owner" of the
<g-conf-schema>
, where the owner is the name of the application that created the entry.
- sc
- a
<g-conf-schema>
.- owner
- the name of the creating application.
<g-conf-schema>
) (val <g-conf-value>
)Sets the default value for the entry described by the
<g-conf-schema>
. The<g-conf-value>
is copied. Alternatively, usegconf-schema-set-default-value-nocopy
.
- sc
- a
<g-conf-schema>
.- val
- the default value.
<g-conf-schema>
) (type <g-conf-value-type>
)Sets the
<g-conf-value-type>
of the first member (car) of the entry (which should be of type ‘GCONF_VALUE_PAIR’) described by<g-conf-schema>
to type.
- sc
- a
<g-conf-schema>
.- type
- the type.