diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-19 14:01:41 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-19 14:01:41 -0500 |
commit | 029aad7907a2381e398a601d25907c39cf9b332b (patch) | |
tree | adccf45dba9ff701faccd356640d9a46cb53b639 /gtk/gtkcssnode.c | |
parent | 040723ec2dbdb91f246c83d0018cf0f55fa8d02d (diff) | |
download | gtk+-029aad7907a2381e398a601d25907c39cf9b332b.tar.gz |
Add more CSS node docs
Diffstat (limited to 'gtk/gtkcssnode.c')
-rw-r--r-- | gtk/gtkcssnode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c index 6727d9fb8f..560f30673b 100644 --- a/gtk/gtkcssnode.c +++ b/gtk/gtkcssnode.c @@ -61,6 +61,11 @@ * - The draw function should just use gtk_style_context_save_to_node() to * 'switch' to the right node, not make any other changes to the style * context. + * + * A noteworthy difference between gtk_style_context_save() and + * gtk_style_context_save_to_node() is that the former inherits all the + * style classes from the main CSS node, which often leads to unintended + * inheritance. */ /* When these change we do a full restyling. Otherwise we try to figure out |