mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 02:11:08 +00:00
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.
This commit is contained in:
parent
ed45a3c2f0
commit
a8efb784d7
@ -1295,7 +1295,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,
|
||||
@ -1307,7 +1307,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,
|
||||
@ -1322,7 +1322,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,
|
||||
@ -1417,7 +1417,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,
|
||||
@ -1428,7 +1428,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,
|
||||
@ -1439,7 +1439,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,
|
||||
@ -1450,7 +1450,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,
|
||||
@ -1461,7 +1461,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,
|
||||
@ -1472,7 +1472,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,
|
||||
@ -1483,7 +1483,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,
|
||||
@ -1494,7 +1494,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,
|
||||
@ -1519,7 +1519,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,
|
||||
@ -1541,7 +1541,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,
|
||||
@ -1563,7 +1563,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,
|
||||
@ -1585,7 +1585,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,
|
||||
@ -1653,7 +1653,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,
|
||||
@ -1721,7 +1721,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,
|
||||
@ -1734,7 +1734,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,
|
||||
@ -1747,7 +1747,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,
|
||||
@ -1760,7 +1760,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,
|
||||
@ -1773,7 +1773,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,
|
||||
@ -1800,7 +1800,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,
|
||||
@ -1812,7 +1812,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,
|
||||
|
Loading…
Reference in New Issue
Block a user