GSettings: don't abort on missing schemas

Give a g_critical instead.
This commit is contained in:
Ryan Lortie
2011-07-20 14:04:52 +02:00
parent 06941419e3
commit c841c2ce3f
3 changed files with 91 additions and 17 deletions

View File

@@ -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);