Add g_settings_new_try (or something similar)
jessevdk@gmail.com
Submitted byAssigned to Allison (desrt)
Link to original bug (#722134)
Description
I've found that on several occasions I'd like to create a GSettings, but not fail/abort when the schema doesn't exist. In these cases I'd like to softly depend on some settings (like for example fonts) but not crash my application trying to get the corresponding settings. Currently we work around it by getting the default schema source, doing a schema lookup and creating a new settings using g_settings_new_full.
Could we maybe have an API of the form:
GSettings *g_settings_new_try (const gchar *schema_id, GError **error)
So that we can gracefully handle schema's not existing without going through the schema_source/schema API's?