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)
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], "/") &&
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
}
/**
- * 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
* it.
*/
const gchar **
-g_settings_list_keys (GSettings *settings)
+g_settings_list_items (GSettings *settings)
{
const GQuark *keys;
const gchar **strv;
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,