[gtk+/composite-templates] stylecontext: Actually use superset matcher
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/composite-templates] stylecontext: Actually use superset matcher
- Date: Sat, 6 Oct 2012 17:10:15 +0000 (UTC)
commit 9500a972ae7e683f3b08c21dd3453de185bb5f44
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 1 14:23:15 2012 +0200
stylecontext: Actually use superset matcher
... when looking up the needed changes.
This is what that matcher was actually written for, but it seems I never
hooked it in.
gtk/gtkstylecontext.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index ebaeb1b..67cba7e 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -3035,12 +3035,15 @@ gtk_style_context_needs_full_revalidate (GtkStyleContext *context,
if (priv->relevant_changes == GTK_CSS_CHANGE_ANY)
{
GtkWidgetPath *path;
- GtkCssMatcher matcher;
+ GtkCssMatcher matcher, superset;
path = create_query_path (context, priv->info);
if (_gtk_css_matcher_init (&matcher, path, priv->info->state_flags))
- priv->relevant_changes = _gtk_style_provider_private_get_change (GTK_STYLE_PROVIDER_PRIVATE (priv->cascade),
- &matcher);
+ {
+ _gtk_css_matcher_superset_init (&superset, &matcher, GTK_STYLE_CONTEXT_RADICAL_CHANGE & ~GTK_CSS_CHANGE_SOURCE);
+ priv->relevant_changes = _gtk_style_provider_private_get_change (GTK_STYLE_PROVIDER_PRIVATE (priv->cascade),
+ &superset);
+ }
else
priv->relevant_changes = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]