mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-07 01:00:28 +00:00
cssprovider: Explode if we fail to parse the default CSS
This can only happen if somebody really messed up with a checkin, and in that case we want to explode early.
This commit is contained in:
parent
9e393020c4
commit
1b64655eb6
@ -3824,7 +3824,10 @@ gtk_css_provider_get_default (void)
|
||||
"\n";
|
||||
|
||||
provider = gtk_css_provider_new ();
|
||||
gtk_css_provider_load_from_data (provider, str, -1, NULL);
|
||||
if (!gtk_css_provider_load_from_data (provider, str, -1, NULL))
|
||||
{
|
||||
g_error ("Failed to load the internal default CSS.");
|
||||
}
|
||||
}
|
||||
|
||||
return provider;
|
||||
|
Loading…
Reference in New Issue
Block a user