forked from AuroraMiddleware/gtk
cssprovider: Handle non-existing section
Otherwise we'll get warnings on errors when CSS debug is disabled.
This commit is contained in:
parent
18fdc975be
commit
4bc264a514
@ -1825,10 +1825,13 @@ gtk_css_provider_propagate_error (GtkCssProvider *provider,
|
||||
return;
|
||||
|
||||
*propagate_to = g_error_copy (error);
|
||||
if (section)
|
||||
{
|
||||
s = _gtk_css_section_to_string (section);
|
||||
g_prefix_error (propagate_to, "%s", s);
|
||||
g_free (s);
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
parse_import (GtkCssScanner *scanner)
|
||||
|
Loading…
Reference in New Issue
Block a user