mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
Add some more schema docs
This commit is contained in:
parent
102c0dacab
commit
4bc82beae5
@ -2080,7 +2080,8 @@ G_TYPE_FILE_DESCRIPTOR_BASED
|
||||
<FILE>gsettingsbackend</FILE>
|
||||
<TITLE>GSettingsBackend</TITLE>
|
||||
GSettingsBackend
|
||||
g_settings_backend_get_default
|
||||
g_settings_backend_get_with_context
|
||||
g_settings_backend_supports_context
|
||||
g_settings_backend_create_tree
|
||||
g_settings_backend_read
|
||||
g_settings_backend_write
|
||||
|
@ -705,7 +705,7 @@ g_settings_set_value (GSettings *settings,
|
||||
* g_settings_get:
|
||||
* @settings: a #GSettings object
|
||||
* @key: the key to get the value for
|
||||
* @format: a #GVariant format string
|
||||
* @format_string: a #GVariant format string
|
||||
* @...: arguments as per @format
|
||||
*
|
||||
* Gets the value that is stored at @key in @settings.
|
||||
@ -714,7 +714,7 @@ g_settings_set_value (GSettings *settings,
|
||||
* g_variant_get().
|
||||
*
|
||||
* It is a programmer error to pass a @key that isn't valid for
|
||||
* @settings or a @format that doesn't match the type of @key according
|
||||
* @settings or a @format_string that doesn't match the type of @key according
|
||||
* to the schema of @settings.
|
||||
*
|
||||
* Since: 2.26
|
||||
@ -722,7 +722,7 @@ g_settings_set_value (GSettings *settings,
|
||||
void
|
||||
g_settings_get (GSettings *settings,
|
||||
const gchar *key,
|
||||
const gchar *format,
|
||||
const gchar *format_string,
|
||||
...)
|
||||
{
|
||||
GVariant *value;
|
||||
@ -730,8 +730,8 @@ g_settings_get (GSettings *settings,
|
||||
|
||||
value = g_settings_get_value (settings, key);
|
||||
|
||||
va_start (ap, format);
|
||||
g_variant_get_va (value, format, NULL, &ap);
|
||||
va_start (ap, format_string);
|
||||
g_variant_get_va (value, format_string, NULL, &ap);
|
||||
va_end (ap);
|
||||
|
||||
g_variant_unref (value);
|
||||
|
@ -67,7 +67,7 @@ void g_settings_apply (GSettin
|
||||
gboolean g_settings_get_delay_apply (GSettings *settings);
|
||||
gboolean g_settings_get_has_unapplied (GSettings *settings);
|
||||
void g_settings_set_delay_apply (GSettings *settings,
|
||||
gboolean delay_apply);
|
||||
gboolean delay);
|
||||
gboolean g_settings_get_locked (GSettings *settings);
|
||||
void g_settings_lock (GSettings *settings);
|
||||
|
||||
|
@ -31,6 +31,38 @@
|
||||
*
|
||||
* The #GSettingsSchema class provides schema information (i.e. types,
|
||||
* default values and descriptions) for keys in settings.
|
||||
*
|
||||
* Schema information is required to use #GSettings.
|
||||
*
|
||||
* The source format for GSettings schemas is an XML format that can
|
||||
* be described with the following DTD:
|
||||
* |[<![CDATA[
|
||||
* <!ELEMENT schemalist (schema*) >
|
||||
* <!ATTLIST schemalist gettext-domain #IMPLIED >
|
||||
*
|
||||
* <!ELEMENT schema (key*) >
|
||||
* <!ATTLIST schema id #REQUIRED
|
||||
* path #IMPLIED
|
||||
* gettext-domain #IMPLIED >
|
||||
*
|
||||
* <!ELEMENT key (default|summary|description|range)* >
|
||||
* <!ATTLIST key name #REQUIRED
|
||||
* type #REQUIRED >
|
||||
*
|
||||
* <!ELEMENT default (#PCDATA) >
|
||||
* <!ATTLIST default l10n #IMPLIED >
|
||||
*
|
||||
* <!ELEMENT summary (#PCDATA) >
|
||||
* <!ELEMENT description (#PCDATA) >
|
||||
* <!ELEMENT range (choice*|(min,max)) >
|
||||
*
|
||||
* <!ELEMENT choice EMPTY >
|
||||
* <!ATTLIST choice value #REQUIRED >
|
||||
*
|
||||
* <!ELEMENT min (#PCDATA) >
|
||||
* <!ELEMENT max (#PCDATA) >
|
||||
* ]]>
|
||||
* ]|
|
||||
*/
|
||||
|
||||
G_DEFINE_TYPE (GSettingsSchema, g_settings_schema, G_TYPE_OBJECT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user