summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimageprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* cssimage: Make image transition a vfuncBenjamin Otte2012-10-021-0/+9
|
* css: Huge refactoring to avoid computing wrong valuesBenjamin Otte2012-09-281-46/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Here's the shortest description of the bug I can come up with: When computing values, we have 3 kinds of dependencies: (1) other properties ("currentColor" or em values) (2) inherited properties ("inherit") (3) generic things from the theme (@keyframes or @define-color) Previously, we passed the GtkStyleContext as an argument, because it provided these 3 things using: (1) _gtk_style_context_peek_property() (2) _gtk_style_context_peek_property(gtk_style_context_get_parent()) (3) context->priv->cascade However, this makes it impossible to lookup values other than the ones accessible via _gtk_style_context_peek_property(). And this is exactly what we are doing in gtk_style_context_update_cache(). So when the cache updates encountered case (1), they were looking up the values from the wrong style data. So this large patch essentially does nothing but replace the context argument in all compute functions with new arguments for the 3 cases above: (1) values (2) parent_values (3) provider We apparently have a lot of computing code.
* cssimage: Implement dependencies for imagesBenjamin Otte2012-08-281-2/+4
|
* css: Pass property_id to compute functionBenjamin Otte2012-08-281-0/+2
| | | | | | | | | | | | | | | | This is a reorganization of how value computing should be done. Previously the GtkCssStyleProperty.compute vfunc was supposed to take care of special cases when it needed those for computation. However, this proved to be very complicated in cases where values were nested and only the last value (of a common type) needed to be special cased. A common example for this was the fallback handling for unresolvable colors. Now, we pass the property's ID along with all compute functions so we can do the special casing where it's necessary. Note that no actual changes happen in this commit. This will happen in follow-ups.
* cssimage: No need to pass base file anymoreBenjamin Otte2012-05-111-4/+2
| | | | The file is now part of the GtkCssParser
* Change FSF AddressJavier Jardón2012-02-271-2/+1
|
* cssimage: Add _gtk_css_image_can_parse()Benjamin Otte2012-01-091-0/+1
| | | | | Looks at the first token of the stream to see if this looks like an image declaration. If it does: return %TRUE.
* cssimage: Add a few convenience functionsBenjamin Otte2012-01-091-0/+12
|
* css: Add GtkCssImage classBenjamin Otte2012-01-091-0/+98
Doesn't do anything yet, just exists.