summaryrefslogtreecommitdiff
path: root/gtk/gtkcsspathnode.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-04 04:43:55 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:30 +0100
commit219e52f7e1d73fa87b31dfc24950ea7bfe2c32dc (patch)
tree6807a239855028eac2bd98e5774d6486981a6f67 /gtk/gtkcsspathnode.c
parent71813671ef51eb555084a3823e7d6c872870ed2b (diff)
downloadgtk+-219e52f7e1d73fa87b31dfc24950ea7bfe2c32dc.tar.gz
cssnode: Automatically recreate style on get_style() call
When the style is invalid, redo it. Make this a vfunc, so the widget nodes can opt out.
Diffstat (limited to 'gtk/gtkcsspathnode.c')
-rw-r--r--gtk/gtkcsspathnode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkcsspathnode.c b/gtk/gtkcsspathnode.c
index b3588ea54c..aeecc4d583 100644
--- a/gtk/gtkcsspathnode.c
+++ b/gtk/gtkcsspathnode.c
@@ -24,13 +24,10 @@
G_DEFINE_TYPE (GtkCssPathNode, gtk_css_path_node, GTK_TYPE_CSS_NODE)
static void
-gtk_css_path_node_invalidate (GtkCssNode *node,
- GtkCssChange change)
+gtk_css_path_node_invalidate (GtkCssNode *node)
{
GtkCssPathNode *path_node = GTK_CSS_PATH_NODE (node);
- gtk_css_node_set_style (node, NULL);
-
if (path_node->context)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;