forked from AuroraMiddleware/gtk
GtkCssProvider: Small optimization.
This commit is contained in:
parent
c001833ed1
commit
9ebbc7b5c5
@ -429,10 +429,12 @@ compare_selector (GtkWidgetPath *path,
|
||||
GSList *elements = selector->elements;
|
||||
gboolean match = TRUE;
|
||||
guint64 score = 0;
|
||||
guint len;
|
||||
guint i = 0;
|
||||
|
||||
while (elements && match &&
|
||||
i < gtk_widget_path_length (path))
|
||||
len = gtk_widget_path_length (path);
|
||||
|
||||
while (elements && match && i < len)
|
||||
{
|
||||
SelectorElement *elem;
|
||||
guint8 elem_score;
|
||||
|
Loading…
Reference in New Issue
Block a user