mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-08 03:45:49 +01:00
g_settings_list_keys() -> _list_items()
This function returns children as well.
This commit is contained in:
parent
3628b0b499
commit
137ae2413c
@ -2151,7 +2151,7 @@ g_settings_get_child
|
||||
|
||||
<SUBSECTION Introspection>
|
||||
g_settings_list_schemas
|
||||
g_settings_list_keys
|
||||
g_settings_list_items
|
||||
|
||||
<SUBSECTION Convenience>
|
||||
g_settings_get
|
||||
|
@ -1478,7 +1478,7 @@ g_settings_set_boolean
|
||||
g_settings_get_enum
|
||||
g_settings_set_enum
|
||||
g_settings_sync
|
||||
g_settings_list_keys
|
||||
g_settings_list_items
|
||||
g_settings_get_mapped
|
||||
#endif
|
||||
#endif
|
||||
|
@ -162,7 +162,7 @@ key_exists (GSettings *settings,
|
||||
|
||||
ret = FALSE;
|
||||
|
||||
keys = g_settings_list_keys (settings);
|
||||
keys = g_settings_list_items (settings);
|
||||
for (i = 0; keys[i]; i++)
|
||||
if (!g_str_has_suffix (keys[i], "/") &&
|
||||
g_strcmp0 (keys[i], name) == 0)
|
||||
@ -182,7 +182,7 @@ list_keys (GSettings *settings,
|
||||
const gchar **keys;
|
||||
gint i;
|
||||
|
||||
keys = g_settings_list_keys (settings);
|
||||
keys = g_settings_list_items (settings);
|
||||
for (i = 0; keys[i]; i++)
|
||||
{
|
||||
if (!g_str_has_suffix (keys[i], "/") &&
|
||||
|
@ -1844,7 +1844,7 @@ g_settings_get_has_unapplied (GSettings *settings)
|
||||
G_DELAYED_SETTINGS_BACKEND (settings->priv->backend));
|
||||
}
|
||||
|
||||
/* Extra API (sync, get_child, is_writable, list_keys) {{{1 */
|
||||
/* Extra API (sync, get_child, is_writable, list_items) {{{1 */
|
||||
/**
|
||||
* g_settings_sync:
|
||||
* @context: the context to sync, or %NULL
|
||||
@ -1938,11 +1938,15 @@ g_settings_get_child (GSettings *settings,
|
||||
}
|
||||
|
||||
/**
|
||||
* g_settings_list_keys:
|
||||
* g_settings_list_items:
|
||||
* @settings: a #GSettings object
|
||||
* Returns: a list of the keys on @settings
|
||||
*
|
||||
* Introspects the list of keys on @settings.
|
||||
* Introspects the list of keys and children on @settings.
|
||||
*
|
||||
* The list that is returned is a mix of the keys and children. The
|
||||
* names of the children are suffixed with '/'. The names of the keys
|
||||
* are not.
|
||||
*
|
||||
* You should probably not be calling this function from "normal" code
|
||||
* (since you should already know what keys are in your schema). This
|
||||
@ -1952,7 +1956,7 @@ g_settings_get_child (GSettings *settings,
|
||||
* it.
|
||||
*/
|
||||
const gchar **
|
||||
g_settings_list_keys (GSettings *settings)
|
||||
g_settings_list_items (GSettings *settings)
|
||||
{
|
||||
const GQuark *keys;
|
||||
const gchar **strv;
|
||||
|
@ -79,7 +79,7 @@ GSettings * g_settings_new_with_backend (const g
|
||||
GSettings * g_settings_new_with_backend_and_path (const gchar *schema,
|
||||
GSettingsBackend *backend,
|
||||
const gchar *path);
|
||||
const gchar ** g_settings_list_keys (GSettings *settings);
|
||||
const gchar ** g_settings_list_items (GSettings *settings);
|
||||
|
||||
gboolean g_settings_set_value (GSettings *settings,
|
||||
const gchar *key,
|
||||
|
Loading…
x
Reference in New Issue
Block a user