mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
GSettings: don't abort on missing schemas
Give a g_critical instead.
This commit is contained in:
@@ -280,7 +280,10 @@ g_settings_schema_new (const gchar *name)
|
||||
}
|
||||
|
||||
if (table == NULL)
|
||||
g_error ("Settings schema '%s' is not installed\n", name);
|
||||
{
|
||||
g_critical ("Settings schema '%s' is not installed\n", name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
schema = g_object_new (G_TYPE_SETTINGS_SCHEMA, NULL);
|
||||
schema->priv->name = g_strdup (name);
|
||||
|
Reference in New Issue
Block a user