forked from AuroraMiddleware/gtk
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:
parent
0333602809
commit
1aa37687be
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user