mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 00:43:40 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user