[gtk+/wip/css: 12/37] stylecontext: Provide a function for getting the style provider
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 12/37] stylecontext: Provide a function for getting the style provider
- Date: Mon, 17 Sep 2012 15:09:21 +0000 (UTC)
commit 297616950964c163b0d0d5c1d292e6388852b23b
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 10 12:35:46 2012 +0200
stylecontext: Provide a function for getting the style provider
This will be necessary for creating the computed values for keyframes.
gtk/gtkstylecontext.c | 8 ++++++++
gtk/gtkstylecontextprivate.h | 4 ++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 0b3cf04..13c4f29 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)
{
diff --git a/gtk/gtkstylecontextprivate.h b/gtk/gtkstylecontextprivate.h
index 1c950b9..e099478 100644
--- a/gtk/gtkstylecontextprivate.h
+++ b/gtk/gtkstylecontextprivate.h
@@ -19,6 +19,7 @@
#define __GTK_STYLE_CONTEXT_PRIVATE_H__
#include "gtkstylecontext.h"
+#include "gtkstyleproviderprivate.h"
#include "gtksymboliccolor.h"
#include "gtkbitmaskprivate.h"
#include "gtkcssvalueprivate.h"
@@ -57,6 +58,9 @@ void _gtk_style_context_get_cursor_color (GtkStyleContext
GdkRGBA *primary_color,
GdkRGBA *secondary_color);
+GtkStyleProviderPrivate *
+ _gtk_style_context_get_style_provider (GtkStyleContext *context);
+
void _gtk_style_context_stop_animations (GtkStyleContext *context);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]