diff options
author | Benjamin Otte <otte@redhat.com> | 2015-03-01 21:33:54 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:33 +0100 |
commit | 6988f9b818c398511378de5a28cd68b53745110b (patch) | |
tree | 967583fbc5e82e0c8796240471df9ca759b4db5f /gtk/gtkcssnodeprivate.h | |
parent | c7fba52a36092d16fcd38c87b6d2a29f160dc4ee (diff) | |
download | gtk+-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.h | 7 |
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); |