]> Pileus Git - ~andy/gtk/commit
Add GtkStylePropertyContext and use it in when getting style properties
authorAlexander Larsson <alexl@redhat.com>
Tue, 15 Nov 2011 15:56:59 +0000 (16:56 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 17 Nov 2011 11:27:22 +0000 (12:27 +0100)
commitc09148ca09081cd009cb9a328441b4b43008e352
treeb4d672b2d49282b99bee74620812b0a93e466b03
parente953465e33b4ba9b7c72b6dc3be4fe5db69efe7f
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.
gtk/gtkborderimage.c
gtk/gtkborderimageprivate.h
gtk/gtkstylecontext.c
gtk/gtkstylecontextprivate.h
gtk/gtkstyleproperties.c
gtk/gtkstylepropertiesprivate.h
gtk/gtkstyleproperty.c
gtk/gtkstylepropertyprivate.h
gtk/gtkthemingengine.c
gtk/gtkthemingengineprivate.h