widget: Prepend style classes to list when parsing

Since the later gtk_style_context_add_class doesn't care about the order
of the style classes, we can as well just prepend style classes to the
list and avoid the squared behavior when appending to a linked list.
This commit is contained in:
Timm Bäder 2017-03-21 14:40:21 +01:00
parent 0333602809
commit 1aa37687be

View File

@ -12576,7 +12576,7 @@ style_start_element (GMarkupParseContext *context,
return;
}
data->classes = g_slist_append (data->classes, g_strdup (name));
data->classes = g_slist_prepend (data->classes, g_strdup (name));
}
else if (strcmp (element_name, "style") == 0)
{