summaryrefslogtreecommitdiff
path: root/gtk/gtkthemingengineprivate.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2011-11-15 16:56:59 +0100
committerAlexander Larsson <alexl@redhat.com>2011-11-17 12:27:22 +0100
commitc09148ca09081cd009cb9a328441b4b43008e352 (patch)
treeb4d672b2d49282b99bee74620812b0a93e466b03 /gtk/gtkthemingengineprivate.h
parente953465e33b4ba9b7c72b6dc3be4fe5db69efe7f (diff)
downloadgtk+-c09148ca09081cd009cb9a328441b4b43008e352.tar.gz
Add GtkStylePropertyContext and use it in when getting style properties
At the toplevel we have _gtk_theming_engine_get, which lets us pass in a property context with (atm) the size to get the property for. Then there is a lot of plumbing to push this down into the lower layers of the style property code until finally hitting the property resolvers. I need this because I will be adding a property resolver for win32 theme parts, and they render differently depending on the size (i.e. they don't scale linearly). The idea is that the code to get the background properties will pass in the final size and we will resolve the theme part specification to that particular size. If the old non-context calls are used we just hardcode a size of 100x100.
Diffstat (limited to 'gtk/gtkthemingengineprivate.h')
-rw-r--r--gtk/gtkthemingengineprivate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkthemingengineprivate.h b/gtk/gtkthemingengineprivate.h
index caf189ec6b..5191fa05b8 100644
--- a/gtk/gtkthemingengineprivate.h
+++ b/gtk/gtkthemingengineprivate.h
@@ -21,6 +21,13 @@
#define __GTK_THEMING_ENGINE_PRIVATE_H__
#include <gdk/gdk.h>
+#include "gtkstylecontextprivate.h"
+
+void _gtk_theming_engine_get (GtkThemingEngine *engine,
+ GtkStateFlags state,
+ GtkStylePropertyContext *property_context,
+ ...) G_GNUC_NULL_TERMINATED;
+
void _gtk_theming_engine_paint_spinner (cairo_t *cr,
gdouble radius,