[glib] GSettings: More docs for deprecated _list_schemas()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GSettings: More docs for deprecated _list_schemas()
- Date: Sat, 23 Nov 2013 18:36:23 +0000 (UTC)
commit aef0adc0dd6e53c28aa3243ee97a202257a4e195
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 14 17:39:06 2013 +0100
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
gio/gsettingsschema.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]