Clean up g_settings_list_schemas()
authorRyan Lortie <desrt@desrt.ca>
Sun, 3 Oct 2010 02:42:02 +0000 (22:42 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sun, 3 Oct 2010 02:42:02 +0000 (22:42 -0400)
commitd2c06994402ee30e989efb9e912d3abd16ca0e10
tree5d6f480344c8e58941b7b620d7ef0aee25d3005a
parent1fee36f72bdbf87d585222e864cb8494e7156ee0
Clean up g_settings_list_schemas()

In its previous form, g_settings_list_schemas() was not useful as a tool
to prevent aborts due to using g_settings_new() with an invalid schema
name.  This is because g_settings_list_scheams() also listed relocatable
schemas, and calling g_settings_new() for those would abort just the
same as if you called it for a non-existent schema.

Modify g_settings_list_schemas() so that it only returns schemas for
which it is safe to call g_settings_new().  Add another call for sake of
completeness: g_settings_list_relocatable_schemas().
gio/gio.symbols
gio/gsettings.h
gio/gsettingsschema.c
gio/tests/gsettings.c