After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680838 - Need g_settings_schema_source_get_schemas()
Need g_settings_schema_source_get_schemas()
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gsettings
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks: 695558
 
 
Reported: 2012-07-30 14:31 UTC by Robert Ancell
Modified: 2013-10-28 00:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add g_settings_schema_source_list_schemas() (10.16 KB, patch)
2013-10-27 17:30 UTC, Allison Karlitskaya (desrt)
committed Details | Review

Description Robert Ancell 2012-07-30 14:31:51 UTC
Need something like this:
GList *g_settings_schema_source_lookup(GSettingsSchemaSource *source);

To get all the schemas available (i.e. returns a list of GSettingsSchema).
Comment 1 Allison Karlitskaya (desrt) 2013-10-27 17:30:50 UTC
Created attachment 258237 [details] [review]
Add g_settings_schema_source_list_schemas()

g_settings_list_schemas() and g_settings_list_relocatable_schemas() are
now deprecated.

This will allow listing off schemas on non-default sources and is a
better fit with the new direction the API is going.
Comment 2 Lars Karlitski 2013-10-27 17:43:55 UTC
Review of attachment 258237 [details] [review]:

::: gio/gsettingsschema.h
@@ +53,3 @@
 
+GLIB_AVAILABLE_IN_2_40
+void                    g_settings_schema_source_list_schemas           (GSettingsSchemaSource   *source,

This new function needs to be added to gio-sections.txt
Comment 3 Allison Karlitskaya (desrt) 2013-10-28 00:13:31 UTC
Attachment 258237 [details] pushed as 6f38634 - Add g_settings_schema_source_list_schemas()