summaryrefslogtreecommitdiff
path: root/gtk/gtkcssanimatedstyle.c
Commit message (Collapse)AuthorAgeFilesLines
* cssstyle: Add gtk_css_style_is_static()Benjamin Otte2015-03-181-16/+16
| | | | | | | Gets rid of the need to do if (ANIMATED_STYLE() && animated_style_is_static(ANIMATED_STYLE(style))
* cssstyle: Handle 0 timestamp to mean "don't animate"Benjamin Otte2015-03-181-0/+6
|
* css: Move scale to GtkStyleProviderPrivatewip/mir2Benjamin Otte2015-02-061-4/+2
| | | | | | This way, we can remove it as a separate argument from gtk_css_value_compute() and allow computation to only depend on one thing: the style provider.
* cssstyle: Move function from vfunc to static funcBenjamin Otte2015-01-071-11/+0
| | | | | compute_dependencies() is only used internally by GtkCssStaticStyle, so there's no need to have it elsewhere.
* stylecontext: Refactor update_properties()Benjamin Otte2015-01-071-1/+3
| | | | It now always returns a new instance.
* cssanimatedstyle: Apply animation values after creationBenjamin Otte2015-01-071-0/+3
| | | | This makes GtkCssAnimatedStyle immutable.
* cssanimatedstyle: Make advancing the style return a new styleBenjamin Otte2015-01-071-41/+38
| | | | This is another step towards making CssStyles immutable.
* cssanimatedstyle: Avoid creating animationBenjamin Otte2015-01-071-33/+47
| | | | | | | ... when no animation exists. This makes the function name kinda wrong, but I'm not sure what else to call it.
* cssanimatedstyle: Remove unused functionBenjamin Otte2015-01-071-16/+0
|
* cssanimatedstyle: Merge two functionsBenjamin Otte2015-01-071-24/+23
|
* stylecontext: Make static styles staticBenjamin Otte2015-01-071-26/+36
| | | | | | | | Instead of keeping an animated style everywhere, we replace it with the static style when nothing gets animated. Apart from making the code cleaner, this gets rid of a bunch of animated style values that do nothing but wrap a static style.
* stylecontext: Always pass the static styleBenjamin Otte2015-01-071-18/+0
| | | | | | | ... to build_properties. There is always one available, so we can insist on that one. This simplifies a bunch of code.
* cssstyle: Add GtkCssStaticStyleBenjamin Otte2015-01-071-103/+10
| | | | | | | | For now, this is only an implementation detail of the animated style. The idea is to use GtkCssStaticStyle as the result of CSS queries and then put a GtkCssAnimatedStyle on top that manages the animations. The neat thing about this is that you can cache the static values.
* cssstyle: Split into GtkCssStyle and GtkCssAnimatedStyleBenjamin Otte2015-01-071-0/+599
GtkCssStyle is the base class to be used for all types of styles that do exist. GtkCssAnimatedStyle is the only implementation so far, that is exactly a copy/paste of the old GtkCssStyle code.