Revert "GSettings: don't abort on missing schemas"

This reverts commit c841c2ce3f.

This approach has been an unmitigated disaster.  We're getting all sorts
of crashes due to functions that are returning NULL because they can't
find the schema for the default value.  The people who get these crashes
are then confused about the root cause of the problem and waste a lot of
time trying to figure it out.

Until we find a better solution, we should go back to what we had
before.

https://bugzilla.gnome.org/show_bug.cgi?id=655366
This commit is contained in:
Ryan Lortie
2011-10-03 10:19:14 -04:00
parent 9d989c7b8a
commit 3106391694
3 changed files with 17 additions and 91 deletions

View File

@@ -280,10 +280,7 @@ g_settings_schema_new (const gchar *name)
}
if (table == NULL)
{
g_critical ("Settings schema '%s' is not installed\n", name);
return NULL;
}
g_error ("Settings schema '%s' is not installed\n", name);
schema = g_object_new (G_TYPE_SETTINGS_SCHEMA, NULL);
schema->priv->name = g_strdup (name);