From: Bastien Nocera Date: Thu, 14 Nov 2013 16:39:06 +0000 (+0100) Subject: GSettings: More docs for deprecated _list_schemas() X-Git-Tag: 2.39.2~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aef0adc0dd6e53c28aa3243ee97a202257a4e195;p=platform%2Fupstream%2Fglib.git 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 --- diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c index 10a8c2b..78d68ab 100644 --- a/gio/gsettingsschema.c +++ b/gio/gsettingsschema.c @@ -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)