diff options
author | Benjamin Otte <otte@redhat.com> | 2015-01-25 02:40:40 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:29 +0100 |
commit | 7bafb63ec3b04764f8986b82f1a6c6e1e73eea3b (patch) | |
tree | 96ae95411828e31923c024347b3034b99d92698b /gtk/gtkcsstransientnode.c | |
parent | d79a44c1afaea14cd8442df61631154fe0bdd441 (diff) | |
download | gtk+-7bafb63ec3b04764f8986b82f1a6c6e1e73eea3b.tar.gz |
cssnode: Handle invalidation
Handle invalidation of node inside the CssNode code, don't do it in the
stylecontext.
Diffstat (limited to 'gtk/gtkcsstransientnode.c')
-rw-r--r-- | gtk/gtkcsstransientnode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkcsstransientnode.c b/gtk/gtkcsstransientnode.c index 723c97a426..726a4854b5 100644 --- a/gtk/gtkcsstransientnode.c +++ b/gtk/gtkcsstransientnode.c @@ -22,6 +22,13 @@ G_DEFINE_TYPE (GtkCssTransientNode, gtk_css_transient_node, GTK_TYPE_CSS_NODE) +static void +gtk_css_transient_node_invalidate (GtkCssNode *node, + GtkCssChange change) +{ + gtk_css_node_set_style (node, NULL); +} + static GtkWidgetPath * gtk_css_transient_node_create_widget_path (GtkCssNode *node) { @@ -57,6 +64,7 @@ gtk_css_transient_node_class_init (GtkCssTransientNodeClass *klass) { GtkCssNodeClass *node_class = GTK_CSS_NODE_CLASS (klass); + node_class->invalidate = gtk_css_transient_node_invalidate; node_class->create_widget_path = gtk_css_transient_node_create_widget_path; node_class->get_widget_path = gtk_css_transient_node_get_widget_path; } |