summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-09-10 12:35:46 +0200
committerBenjamin Otte <otte@redhat.com>2012-09-17 20:39:12 +0200
commit554002028c26f8e09a7f315733aa0832aa466125 (patch)
tree827c4c1fe7c3cefe8497b9b41fe8f2c27b354a10 /gtk/gtkstylecontext.c
parente1e9dec1b28896d852bfb5967cca193c4db4389b (diff)
downloadgtk+-554002028c26f8e09a7f315733aa0832aa466125.tar.gz
stylecontext: Provide a function for getting the style provider
This will be necessary for creating the computed values for keyframes.
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 63ac1defaa..69de53e898 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -700,6 +700,14 @@ gtk_style_context_set_cascade (GtkStyleContext *context,
gtk_style_context_cascade_changed (cascade, context);
}
+GtkStyleProviderPrivate *
+_gtk_style_context_get_style_provider (GtkStyleContext *context)
+{
+ g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL);
+
+ return GTK_STYLE_PROVIDER_PRIVATE (context->priv->cascade);
+}
+
static void
gtk_style_context_init (GtkStyleContext *style_context)
{