summaryrefslogtreecommitdiff
path: root/gtk/gtkcssprovider.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-09 11:24:29 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:30 +0100
commit2bf7bdd651bb4cdec54831667c11fbead43b1246 (patch)
tree3b2cf4390a6e59dbcd3479f85c6eb7a1c2f13b35 /gtk/gtkcssprovider.c
parent630f0f199ef791c3657472429d850242c973eefe (diff)
downloadgtk+-2bf7bdd651bb4cdec54831667c11fbead43b1246.tar.gz
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.
Diffstat (limited to 'gtk/gtkcssprovider.c')
-rw-r--r--gtk/gtkcssprovider.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index aa61771d36..eb582bfc3f 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1695,7 +1695,7 @@ gtk_css_provider_get_style_property (GtkStyleProvider *provider,
gtk_widget_path_iter_set_state (path, -1, state);
}
- if (!_gtk_css_matcher_init (&matcher, path))
+ if (!_gtk_css_matcher_init (&matcher, path, NULL))
{
gtk_widget_path_unref (path);
return FALSE;