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,9 +1825,12 @@ gtk_css_provider_propagate_error (GtkCssProvider *provider,
|
||||
return;
|
||||
|
||||
*propagate_to = g_error_copy (error);
|
||||
s = _gtk_css_section_to_string (section);
|
||||
g_prefix_error (propagate_to, "%s", s);
|
||||
g_free (s);
|
||||
if (section)
|
||||
{
|
||||
s = _gtk_css_section_to_string (section);
|
||||
g_prefix_error (propagate_to, "%s", s);
|
||||
g_free (s);
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user