diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-17 21:09:51 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:08 +0200 |
commit | 8dbe8c83491c5877c9b19928f257ec7a671cb45e (patch) | |
tree | 937880e83a99ab80678f76492b3997038acb7725 /gtk/gtkstyleproviderprivate.c | |
parent | b0b6c8ad4b9120bdc30d2fd81d572dfb060f4ed1 (diff) | |
download | gtk+-8dbe8c83491c5877c9b19928f257ec7a671cb45e.tar.gz |
syleprovider: Add a vfunc to get the changes
This way we can check what changes are even interesting for our matcher.
Diffstat (limited to 'gtk/gtkstyleproviderprivate.c')
-rw-r--r-- | gtk/gtkstyleproviderprivate.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk/gtkstyleproviderprivate.c b/gtk/gtkstyleproviderprivate.c index 43ae1712ff..fc7e29862e 100644 --- a/gtk/gtkstyleproviderprivate.c +++ b/gtk/gtkstyleproviderprivate.c @@ -61,3 +61,20 @@ _gtk_style_provider_private_lookup (GtkStyleProviderPrivate *provider, iface->lookup (provider, matcher, lookup); } + +GtkCssChange +_gtk_style_provider_private_get_change (GtkStyleProviderPrivate *provider, + const GtkCssMatcher *matcher) +{ + GtkStyleProviderPrivateInterface *iface; + + g_return_val_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider), GTK_CSS_CHANGE_ANY); + g_return_val_if_fail (matcher != NULL, GTK_CSS_CHANGE_ANY); + + iface = GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE (provider); + + if (!iface->get_change) + return GTK_CSS_CHANGE_ANY; + + return iface->get_change (provider, matcher); +} |