diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-11-28 11:07:52 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-11-30 14:53:29 +0100 |
commit | 16f2b20f9610d7d6658c6b14c9e95f0bf6384fd9 (patch) | |
tree | 6a6199b5394748d1f0d2e1f80e4151101687d1a5 /gtk/gtkcssmatcher.c | |
parent | 3b4040d619baae171cc51ca66b34b8b983f6b480 (diff) | |
download | gtk+-16f2b20f9610d7d6658c6b14c9e95f0bf6384fd9.tar.gz |
css: Add _gtk_css_matcher_matches_any()
This returns true if the matcher matches *anything*. We need
to check this later, because such matchers are dangerous in loops
that iterate over all parents/siblings since such loops would not
terminate.
Diffstat (limited to 'gtk/gtkcssmatcher.c')
-rw-r--r-- | gtk/gtkcssmatcher.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcssmatcher.c b/gtk/gtkcssmatcher.c index c656ef48e7..68207387fe 100644 --- a/gtk/gtkcssmatcher.c +++ b/gtk/gtkcssmatcher.c @@ -185,6 +185,7 @@ static const GtkCssMatcherClass GTK_CSS_MATCHER_WIDGET_PATH = { gtk_css_matcher_widget_path_has_regions, gtk_css_matcher_widget_path_has_region, gtk_css_matcher_widget_path_has_position, + FALSE }; gboolean @@ -288,6 +289,7 @@ static const GtkCssMatcherClass GTK_CSS_MATCHER_ANY = { gtk_css_matcher_any_has_regions, gtk_css_matcher_any_has_region, gtk_css_matcher_any_has_position, + TRUE }; void @@ -406,6 +408,7 @@ static const GtkCssMatcherClass GTK_CSS_MATCHER_SUPERSET = { gtk_css_matcher_superset_has_regions, gtk_css_matcher_superset_has_region, gtk_css_matcher_superset_has_position, + FALSE }; void |