|
Packit |
1470ea |
|
|
Packit |
1470ea |
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" id="tech-gsettings" xml:lang="ja">
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<info>
|
|
Packit |
1470ea |
<link type="guide" xref="tech" group="gsettings"/>
|
|
Packit |
1470ea |
<revision pkgversion="3.0" date="2013-01-30" status="candidate"/>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<credit type="author copyright">
|
|
Packit |
1470ea |
<name>Federico Mena Quintero</name>
|
|
Packit |
1470ea |
<email its:translate="no">federico@gnome.org</email>
|
|
Packit |
1470ea |
<years>2013</years>
|
|
Packit |
1470ea |
</credit>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<include xmlns="http://www.w3.org/2001/XInclude" href="cc-by-sa-3-0.xml"/>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<desc>Configuration storage for application preferences</desc>
|
|
Packit |
1470ea |
</info>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<title>GSettings</title>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
GSettings is the part of <link xref="tech-glib">GLib</link> that allows
|
|
Packit |
1470ea |
applications to save their configuration settings and user's preferences in a
|
|
Packit |
1470ea |
standard way.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
An application that uses GSettings defines a schema of
|
|
Packit |
1470ea |
configuration keys. The schema for each key contains the key's name, a
|
|
Packit |
1470ea |
human-readable description of what the key is for, a type for the key
|
|
Packit |
1470ea |
(string, integer, etc.), and a default value.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
GSettings uses the operating system's storage for configuration data. On
|
|
Packit |
1470ea |
GNU systems this is DConf; on Windows it is the Registry, and on Mac OS it
|
|
Packit |
1470ea |
is the NextStep property list mechanism.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
GSettings lets you monitor changes in keys' values, so your application can
|
|
Packit |
1470ea |
respond dynamically to global changes in configuration. For example, all
|
|
Packit |
1470ea |
applications that display clocks can respond to a global setting for
|
|
Packit |
1470ea |
12-hour/24-hour display immediately, without having to restart.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<list style="compact">
|
|
Packit |
1470ea |
<item><link href="http://developer.gnome.org/gio/stable/GSettings.html">GSettings Reference Manual</link> </item>
|
|
Packit |
1470ea |
</list>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
</page>
|