From e2b9f3258ec6267ade2594fe77bcfc74056dcdcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 19 Jan 2019 08:53:08 +0100 Subject: [PATCH] css: Add transform style property --- docs/reference/gtk/css-properties.xml | 10 ++++++++++ gtk/gtkcssstylepropertyimpl.c | 9 ++++++++- gtk/gtkcsstypesprivate.h | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/reference/gtk/css-properties.xml b/docs/reference/gtk/css-properties.xml index c53cbbf730..cfca161678 100644 --- a/docs/reference/gtk/css-properties.xml +++ b/docs/reference/gtk/css-properties.xml @@ -623,6 +623,16 @@ We use for syntax productions, and each line is put in a NameValueInitialInh.Ani.ReferenceNotes + + transform + none | 〈transform〉+ + none + + + CSS3, + 3D + + min-width 〈length〉 diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c index ac8cf75974..62ddce3cd0 100644 --- a/gtk/gtkcssstylepropertyimpl.c +++ b/gtk/gtkcssstylepropertyimpl.c @@ -1609,7 +1609,6 @@ _gtk_css_style_property_init_properties (void) filter_value_parse, NULL, gtk_css_filter_value_new_none ()); - gtk_css_style_property_register ("border-spacing", GTK_CSS_PROPERTY_BORDER_SPACING, G_TYPE_NONE, @@ -1620,6 +1619,14 @@ _gtk_css_style_property_init_properties (void) _gtk_css_position_value_new (_gtk_css_number_value_new (0, GTK_CSS_PX), _gtk_css_number_value_new (0, GTK_CSS_PX))); + gtk_css_style_property_register ("transform", + GTK_CSS_PROPERTY_TRANSFORM, + G_TYPE_NONE, + GTK_STYLE_PROPERTY_ANIMATED, + GTK_CSS_AFFECTS_SIZE, + transform_value_parse, + NULL, + _gtk_css_transform_value_new_none ()); gtk_css_style_property_register ("min-width", GTK_CSS_PROPERTY_MIN_WIDTH, G_TYPE_INT, diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h index 218a15980c..e305fdfb9d 100644 --- a/gtk/gtkcsstypesprivate.h +++ b/gtk/gtkcsstypesprivate.h @@ -222,6 +222,7 @@ enum { /*< skip >*/ GTK_CSS_PROPERTY_ICON_TRANSFORM, GTK_CSS_PROPERTY_ICON_FILTER, GTK_CSS_PROPERTY_BORDER_SPACING, + GTK_CSS_PROPERTY_TRANSFORM, GTK_CSS_PROPERTY_MIN_WIDTH, GTK_CSS_PROPERTY_MIN_HEIGHT, GTK_CSS_PROPERTY_TRANSITION_PROPERTY,