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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user