diff options
author | Benjamin Otte <otte@redhat.com> | 2016-02-12 04:09:44 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-02-13 04:49:07 +0100 |
commit | 7b301fcece6a9f2a18afc2e5e2169da9b6545bbf (patch) | |
tree | fba5a8d60320c8b159a27c237b4d201e486ec97d /gtk/gtkcssimagelinearprivate.h | |
parent | 06454250461f2586cdc4d62fdf4504eb1ba8e163 (diff) | |
download | gtk+-7b301fcece6a9f2a18afc2e5e2169da9b6545bbf.tar.gz |
linear-gradient: Remove the hack using NUMBER
Instead, add a "side" member to the struct that keeps sides explicitly.
Diffstat (limited to 'gtk/gtkcssimagelinearprivate.h')
-rw-r--r-- | gtk/gtkcssimagelinearprivate.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; }; |