GtkCssProvider: Immediately bail out if GType couldn't be resolved.

This commit is contained in:
Carlos Garnacho 2010-08-04 11:42:08 +02:00
parent 9ebbc7b5c5
commit 85dbc71921

View File

@ -444,14 +444,16 @@ compare_selector (GtkWidgetPath *path,
match = compare_selector_element (path, i, elem, &elem_score);
i++;
if (!match && elem->combinator == COMBINATOR_DESCENDANT)
if (!match &&
elem->elem_type != SELECTOR_TYPE_NAME &&
elem->combinator == COMBINATOR_DESCENDANT)
{
/* With descendant combinators there may
* be intermediate chidren in the hierarchy
*/
match = TRUE;
}
else
else if (match)
elements = elements->next;
if (match)