GSettings: More docs for deprecated _list_schemas()

Most _list_schemas() uses were to check for the availability
of a particular schema. g_settings_schema_source_lookup() is
a better way to do this.

https://bugzilla.gnome.org/show_bug.cgi?id=712315
This commit is contained in:
Bastien Nocera 2013-11-14 17:39:06 +01:00 committed by Matthias Clasen
parent 3309055878
commit aef0adc0dd

View File

@ -842,7 +842,10 @@ ensure_schema_lists (void)
*
* Since: 2.26
*
* Deprecated:2.40: Use g_settings_schema_source_list_schemas() instead
* Deprecated:2.40: Use g_settings_schema_source_list_schemas() instead.
* If you used g_settings_list_schemas() to check for the presence of
* a particular schema, use g_settings_schema_source_lookup() instead
* of your whole loop.
**/
const gchar * const *
g_settings_list_schemas (void)