summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnodeprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-03-01 21:33:54 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:33 +0100
commit6988f9b818c398511378de5a28cd68b53745110b (patch)
tree967583fbc5e82e0c8796240471df9ca759b4db5f /gtk/gtkcssnodeprivate.h
parentc7fba52a36092d16fcd38c87b6d2a29f160dc4ee (diff)
downloadgtk+-6988f9b818c398511378de5a28cd68b53745110b.tar.gz
cssnode: Add node-added and node-removed signal
This allows monitoring the CSS tree. For now, moving a child to a different position relative to its siblings while keeping the same parent will cause a child-added + child-removed emission.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r--gtk/gtkcssnodeprivate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h
index 611bc71b14..6cc9f72eba 100644
--- a/gtk/gtkcssnodeprivate.h
+++ b/gtk/gtkcssnodeprivate.h
@@ -65,6 +65,13 @@ struct _GtkCssNodeClass
{
GObjectClass object_class;
+ void (* node_added) (GtkCssNode *cssnode,
+ GtkCssNode *child,
+ GtkCssNode *previous);
+ void (* node_removed) (GtkCssNode *cssnode,
+ GtkCssNode *child,
+ GtkCssNode *previous);
+
gboolean (* init_matcher) (GtkCssNode *cssnode,
GtkCssMatcher *matcher);
GtkWidgetPath * (* create_widget_path) (GtkCssNode *cssnode);