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:
Benjamin Otte 2010-12-15 14:25:19 +01:00
parent 9e393020c4
commit 1b64655eb6

View File

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