mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Document new API
This commit is contained in:
parent
78dcafc5cb
commit
a6caaebea7
@ -174,6 +174,19 @@ g_memory_settings_backend_class_init (GMemorySettingsBackendClass *class)
|
||||
object_class->finalize = g_memory_settings_backend_finalize;
|
||||
}
|
||||
|
||||
/**
|
||||
* g_memory_settings_backend_new:
|
||||
*
|
||||
* Creates a memory-backed #GSettingsBackend.
|
||||
*
|
||||
* This backend allows changes to settings, but does not write them
|
||||
* to any backing storage, so the next time you run your application,
|
||||
* the memory backend will start out with the default values again.
|
||||
*
|
||||
* Returns: (transfer full): a newly created #GSettingsBackend
|
||||
*
|
||||
* Since: 2.28
|
||||
*/
|
||||
GSettingsBackend *
|
||||
g_memory_settings_backend_new (void)
|
||||
{
|
||||
|
@ -119,6 +119,19 @@ g_null_settings_backend_class_init (GNullSettingsBackendClass *class)
|
||||
backend_class->get_permission = g_null_settings_backend_get_permission;
|
||||
}
|
||||
|
||||
/**
|
||||
* g_null_settings_backend_new:
|
||||
*
|
||||
*
|
||||
* Creates a readonly #GSettingsBackend.
|
||||
*
|
||||
* This backend does not allow changes to settings, so all settings
|
||||
* will always have their default values.
|
||||
*
|
||||
* Returns: (transfer full): a newly created #GSettingsBackend
|
||||
*
|
||||
* Since: 2.28
|
||||
*/
|
||||
GSettingsBackend *
|
||||
g_null_settings_backend_new (void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user