GtkLabel: Prefix more ui parser errors
This may become useful in gnome-builder for highlighting errors, so do it consistently.
This commit is contained in:
parent
d99c3e0332
commit
331db35d57
@ -1598,9 +1598,12 @@ pango_start_element (GMarkupParseContext *context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
attr = attribute_from_text (data->builder, name, value, error);
|
attr = attribute_from_text (data->builder, name, value, error);
|
||||||
|
if (!attr)
|
||||||
if (attr)
|
|
||||||
{
|
{
|
||||||
|
_gtk_builder_prefix_error (data->builder, context, error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
attr->start_index = start_val;
|
attr->start_index = start_val;
|
||||||
attr->end_index = end_val;
|
attr->end_index = end_val;
|
||||||
|
|
||||||
@ -1609,7 +1612,6 @@ pango_start_element (GMarkupParseContext *context,
|
|||||||
|
|
||||||
pango_attr_list_insert (data->attrs, attr);
|
pango_attr_list_insert (data->attrs, attr);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if (strcmp (element_name, "attributes") == 0)
|
else if (strcmp (element_name, "attributes") == 0)
|
||||||
{
|
{
|
||||||
if (!_gtk_builder_check_parent (data->builder, context, "object", error))
|
if (!_gtk_builder_check_parent (data->builder, context, "object", error))
|
||||||
|
Loading…
Reference in New Issue
Block a user