[gtk+/wip/cssvalue: 104/141] cssstyleproperty: Mark all animatable properties
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue: 104/141] cssstyleproperty: Mark all animatable properties
- Date: Sat, 7 Apr 2012 08:53:35 +0000 (UTC)
commit f3b99f2c798b237fff2035f9c19ee326264af3a0
Author: Benjamin Otte <otte redhat com>
Date: Mon Apr 2 09:16:08 2012 +0200
cssstyleproperty: Mark all animatable properties
Only the ones that can be animated are marked of course. So more work is
needed.
This is important for
transition-property: all;
because it'll just animate all the properties that can be.
gtk/gtkcssstylepropertyimpl.c | 46 ++++++++++++++++++++--------------------
1 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 1f34a72..ead219b 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -1286,7 +1286,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("color",
GTK_CSS_PROPERTY_COLOR,
GDK_TYPE_RGBA,
- GTK_STYLE_PROPERTY_INHERIT,
+ GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED,
color_parse,
NULL,
color_property_compute,
@@ -1298,7 +1298,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("font-size",
GTK_CSS_PROPERTY_FONT_SIZE,
G_TYPE_DOUBLE,
- GTK_STYLE_PROPERTY_INHERIT,
+ GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED,
font_size_parse,
NULL,
font_size_compute,
@@ -1313,7 +1313,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("background-color",
GTK_CSS_PROPERTY_BACKGROUND_COLOR,
GDK_TYPE_RGBA,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
color_parse,
NULL,
color_compute,
@@ -1408,7 +1408,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("margin-top",
GTK_CSS_PROPERTY_MARGIN_TOP,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_margin,
NULL,
compute_margin,
@@ -1419,7 +1419,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("margin-left",
GTK_CSS_PROPERTY_MARGIN_LEFT,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_margin,
NULL,
compute_margin,
@@ -1430,7 +1430,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("margin-bottom",
GTK_CSS_PROPERTY_MARGIN_BOTTOM,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_margin,
NULL,
compute_margin,
@@ -1441,7 +1441,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("margin-right",
GTK_CSS_PROPERTY_MARGIN_RIGHT,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_margin,
NULL,
compute_margin,
@@ -1452,7 +1452,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("padding-top",
GTK_CSS_PROPERTY_PADDING_TOP,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_padding,
NULL,
compute_padding,
@@ -1463,7 +1463,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("padding-left",
GTK_CSS_PROPERTY_PADDING_LEFT,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_padding,
NULL,
compute_padding,
@@ -1474,7 +1474,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("padding-bottom",
GTK_CSS_PROPERTY_PADDING_BOTTOM,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_padding,
NULL,
compute_padding,
@@ -1485,7 +1485,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("padding-right",
GTK_CSS_PROPERTY_PADDING_RIGHT,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_padding,
NULL,
compute_padding,
@@ -1510,7 +1510,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-top-width",
GTK_CSS_PROPERTY_BORDER_TOP_WIDTH,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width,
NULL,
compute_border_width,
@@ -1532,7 +1532,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-left-width",
GTK_CSS_PROPERTY_BORDER_LEFT_WIDTH,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width,
NULL,
compute_border_width,
@@ -1554,7 +1554,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-bottom-width",
GTK_CSS_PROPERTY_BORDER_BOTTOM_WIDTH,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width,
NULL,
compute_border_width,
@@ -1576,7 +1576,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-right-width",
GTK_CSS_PROPERTY_BORDER_RIGHT_WIDTH,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width,
NULL,
compute_border_width,
@@ -1644,7 +1644,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("outline-width",
GTK_CSS_PROPERTY_OUTLINE_WIDTH,
G_TYPE_INT,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width,
NULL,
compute_border_width,
@@ -1712,7 +1712,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-top-color",
GTK_CSS_PROPERTY_BORDER_TOP_COLOR,
GDK_TYPE_RGBA,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
color_parse,
NULL,
color_compute,
@@ -1725,7 +1725,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-right-color",
GTK_CSS_PROPERTY_BORDER_RIGHT_COLOR,
GDK_TYPE_RGBA,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
color_parse,
NULL,
color_compute,
@@ -1738,7 +1738,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-bottom-color",
GTK_CSS_PROPERTY_BORDER_BOTTOM_COLOR,
GDK_TYPE_RGBA,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
color_parse,
NULL,
color_compute,
@@ -1751,7 +1751,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-left-color",
GTK_CSS_PROPERTY_BORDER_LEFT_COLOR,
GDK_TYPE_RGBA,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
color_parse,
NULL,
color_compute,
@@ -1764,7 +1764,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("outline-color",
GTK_CSS_PROPERTY_OUTLINE_COLOR,
GDK_TYPE_RGBA,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
color_parse,
NULL,
color_compute,
@@ -1791,7 +1791,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("background-image",
GTK_CSS_PROPERTY_BACKGROUND_IMAGE,
CAIRO_GOBJECT_TYPE_PATTERN,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
css_image_value_parse,
NULL,
css_image_value_compute,
@@ -1803,7 +1803,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-image-source",
GTK_CSS_PROPERTY_BORDER_IMAGE_SOURCE,
CAIRO_GOBJECT_TYPE_PATTERN,
- 0,
+ GTK_STYLE_PROPERTY_ANIMATED,
css_image_value_parse,
NULL,
css_image_value_compute,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]