GSettings: More docs for deprecated _list_schemas()
authorBastien Nocera <hadess@hadess.net>
Thu, 14 Nov 2013 16:39:06 +0000 (17:39 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 23 Nov 2013 18:35:52 +0000 (13:35 -0500)
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

gio/gsettingsschema.c

index 10a8c2b..78d68ab 100644 (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)