cssmatcher: Allow widget path matcher to take a node declaration

The node declaration has the same functionality as
gtk_css_node_declaration_add_to_widget_path(). So instead of using that
function on a path, you can use the original path and the declaration in
a matcher.
This commit is contained in:
Benjamin Otte
2015-02-09 11:24:29 +01:00
parent 630f0f199e
commit 2bf7bdd651
6 changed files with 41 additions and 9 deletions

View File

@ -305,7 +305,7 @@ gtk_css_node_real_init_matcher (GtkCssNode *cssnode,
path = gtk_css_node_create_widget_path (cssnode);
if (!_gtk_css_matcher_init (matcher, path))
if (!_gtk_css_matcher_init (matcher, path, NULL))
{
gtk_widget_path_free (path);
return FALSE;