[gtk/wip/baedert/transforms6: 15/18] css: Add transform style property



commit 2308c9d985d95e0011fe0f766cb9366479e27f3c
Author: Timm Bäder <mail baedert org>
Date:   Sat Jan 19 08:53:08 2019 +0100

    css: Add transform style property

 gtk/gtkcssstylepropertyimpl.c | 9 ++++++++-
 gtk/gtkcsstypesprivate.h      | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index ac8cf75974..fe0a33701d 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -1601,6 +1601,14 @@ _gtk_css_style_property_init_properties (void)
                                           transform_value_parse,
                                           NULL,
                                           _gtk_css_transform_value_new_none ());
+  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        ("-gtk-icon-filter",
                                           GTK_CSS_PROPERTY_ICON_FILTER,
                                           G_TYPE_NONE,
@@ -1609,7 +1617,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,
diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h
index 218a15980c..d6e95526c9 100644
--- a/gtk/gtkcsstypesprivate.h
+++ b/gtk/gtkcsstypesprivate.h
@@ -220,6 +220,7 @@ enum { /*< skip >*/
   GTK_CSS_PROPERTY_ICON_SHADOW,
   GTK_CSS_PROPERTY_ICON_STYLE,
   GTK_CSS_PROPERTY_ICON_TRANSFORM,
+  GTK_CSS_PROPERTY_TRANSFORM,
   GTK_CSS_PROPERTY_ICON_FILTER,
   GTK_CSS_PROPERTY_BORDER_SPACING,
   GTK_CSS_PROPERTY_MIN_WIDTH,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]