diff options
author | Benjamin Otte <otte@redhat.com> | 2015-02-17 15:18:32 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:32 +0100 |
commit | 16b8972beef20b59709114f3bff6825548f7ed52 (patch) | |
tree | 3b0c4f980ed0283be3ae940311b81daed33a8a51 /gtk/gtkcssnodeprivate.h | |
parent | c0f6e746a0ae378359eb065df269d58b413160dd (diff) | |
download | gtk+-16b8972beef20b59709114f3bff6825548f7ed52.tar.gz |
cssnode: Change get_style_provider() vfunc
Instead of always returning a provider, allow the vfunc to return NULL
to mane "use same provider as parent". This allows a bunch of
optimizations.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r-- | gtk/gtkcssnodeprivate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h index 32f938f130..8cfcd2a9c0 100644 --- a/gtk/gtkcssnodeprivate.h +++ b/gtk/gtkcssnodeprivate.h @@ -68,6 +68,7 @@ struct _GtkCssNodeClass GtkCssMatcher *matcher); GtkWidgetPath * (* create_widget_path) (GtkCssNode *cssnode); const GtkWidgetPath * (* get_widget_path) (GtkCssNode *cssnode); + /* get style provider to use or NULL to use parent's */ GtkStyleProviderPrivate *(* get_style_provider) (GtkCssNode *cssnode); GtkCssStyle * (* update_style) (GtkCssNode *cssnode, GtkCssChange pending_changes, |