summaryrefslogtreecommitdiff
path: root/gtk/gtkthemingbackgroundprivate.h
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-02-08 16:29:16 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-02-14 16:36:57 -0500
commit46187037a3589f45d84122af61318cd1dcc47a91 (patch)
treebb632f10151c001d4a9a9048c4be7a52ba0792a0 /gtk/gtkthemingbackgroundprivate.h
parentae132c0a1a9587279fdcde5ff755f951bbdbb8cc (diff)
downloadgtk+-46187037a3589f45d84122af61318cd1dcc47a91.tar.gz
themingbackground: make it based on GtkStyleContext
Instead of GtkThemingEngine. This will allow for the object to be also used from inside e.g. a _draw() method.
Diffstat (limited to 'gtk/gtkthemingbackgroundprivate.h')
-rw-r--r--gtk/gtkthemingbackgroundprivate.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkthemingbackgroundprivate.h b/gtk/gtkthemingbackgroundprivate.h
index 27dbc821ee..63dd2a069d 100644
--- a/gtk/gtkthemingbackgroundprivate.h
+++ b/gtk/gtkthemingbackgroundprivate.h
@@ -35,7 +35,7 @@ G_BEGIN_DECLS
typedef struct _GtkThemingBackground GtkThemingBackground;
struct _GtkThemingBackground {
- GtkThemingEngine *engine;
+ GtkStyleContext *context;
cairo_rectangle_t paint_area;
cairo_rectangle_t image_rect;
@@ -60,6 +60,14 @@ void _gtk_theming_background_init (GtkThemingBackground *bg,
gdouble height,
GtkJunctionSides junction);
+void _gtk_theming_background_init_from_context (GtkThemingBackground *bg,
+ GtkStyleContext *context,
+ gdouble x,
+ gdouble y,
+ gdouble width,
+ gdouble height,
+ GtkJunctionSides junction);
+
void _gtk_theming_background_render (GtkThemingBackground *bg,
cairo_t *cr);