Carlos Garnacho
d9e3782391
GtkStyleSet: Fix compiler warning.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
355f0d69ab
GtkStyleSet: Allow custom parsers on registered properties.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
b4a24d6457
GtkStyleSet: Register the "border" property.
2010-12-04 15:37:29 +01:00
Carlos Garnacho
0dc81b9a35
GtkStyleSet: Allow setting default value when registering properties.
...
This is now used for the "engine" keyword, where the default engine is used
if none is specified.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
10f6c04f33
GtkStyleSet: Add priv pointer to object struct.
2010-12-04 15:37:17 +01:00
Carlos Garnacho
4ed96df96a
GtkStyleSet: Optionally take GtkSymbolicColors.
...
gtk_style_set_set_property() now takes both GdkColor and GtkSymbolicColor
GValues, All accessors still return GdkColors, so any symbolic color will
be resolved and replaced in the styleset at that time.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
e2b8efcbec
GtkStyleSet: Add API to map symbolic colors.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
66d1cb8054
GtkStyleSet: Register GtkThemingEngine type.
...
This has been also hooked up to the CSS provider, which parses the "engine"
value to load the corresponding module.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
6906138e45
GtkStyleSet: Remove default value for registered properties.
...
This should be handled at a higher level, a single default value for all
states isn't that useful...
2010-12-04 15:37:10 +01:00
Carlos Garnacho
66accc4184
GtkStyleSet: Add gtk_style_set_set_default().
...
This will set the default value to a given property for all possible states,
such default value will only be used if the queried state doesn't have a
value itself.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
7c5c4d86ae
Add GtkWidgetPath parameter to gtk_style_provider_get_style().
2010-12-04 15:37:02 +01:00
Carlos Garnacho
9971f386b0
GtkStyleSet: Add method to lookup property default settings.
2010-12-04 15:37:01 +01:00
Carlos Garnacho
7647deb417
GtkStyleSet: Make property registration take const GValues.
2010-12-04 15:37:01 +01:00
Carlos Garnacho
28b7782d78
GtkStyleSet: Add method to register border property.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
16484f8459
GtkStyleSet: Add method to register font properties.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
2da033b18c
GtkStyleSet: Return default value if value is not set.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
9fdcbd7a84
GtkStyleSet: Add valist and varargs getters/setters.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
2bf7483e74
GtkStyleSet: Use property GQuark as store keys.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
4c60de4783
GtkStyleSet: Add style property registration funcs.
...
Also some properties have been added as a default set.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
f969470ad8
GtkStyleSet: Implement GtkStyleProvider.
...
As simple as it can get.
2010-12-04 15:36:47 +01:00
Carlos Garnacho
f601abd25f
Add GtkStyleSet, a store of style properties.
...
At the moment there's only basic API for adding,
removing and clearing a property. There's also
API to merge 2 GtkStyleSets.
2010-12-04 15:36:47 +01:00