summaryrefslogtreecommitdiff
path: root/gtk/gtkborderimageprivate.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/gtkborderimageprivate.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/gtkborderimageprivate.h')
-rw-r--r--gtk/gtkborderimageprivate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkborderimageprivate.h b/gtk/gtkborderimageprivate.h
index 563ce299de..ee4975f263 100644
--- a/gtk/gtkborderimageprivate.h
+++ b/gtk/gtkborderimageprivate.h
@@ -29,6 +29,7 @@
#include "gtkstyleproperties.h"
#include "gtkthemingengine.h"
#include "gtkcsstypesprivate.h"
+#include "gtkstylecontextprivate.h"
G_BEGIN_DECLS
@@ -63,7 +64,8 @@ GParameter * _gtk_border_image_unpack (const GValue *valu
guint *n_params);
void _gtk_border_image_pack (GValue *value,
GtkStyleProperties *props,
- GtkStateFlags state);
+ GtkStateFlags state,
+ GtkStylePropertyContext *context);
G_END_DECLS