From 7b301fcece6a9f2a18afc2e5e2169da9b6545bbf Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 12 Feb 2016 04:09:44 +0100 Subject: linear-gradient: Remove the hack using NUMBER Instead, add a "side" member to the struct that keeps sides explicitly. --- gtk/gtkcssimagelinearprivate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk/gtkcssimagelinearprivate.h') diff --git a/gtk/gtkcssimagelinearprivate.h b/gtk/gtkcssimagelinearprivate.h index 6988abedb0..42d6907743 100644 --- a/gtk/gtkcssimagelinearprivate.h +++ b/gtk/gtkcssimagelinearprivate.h @@ -45,7 +45,8 @@ struct _GtkCssImageLinear { GtkCssImage parent; - GtkCssValue *angle; /* warning: We use GTK_CSS_NUMBER as an enum for the corners */ + guint side; /* side the gradient should go to or 0 for angle */ + GtkCssValue *angle; GArray *stops; guint repeating :1; }; -- cgit v1.2.1