summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagelinearprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-02-12 04:09:44 +0100
committerBenjamin Otte <otte@redhat.com>2016-02-13 04:49:07 +0100
commit7b301fcece6a9f2a18afc2e5e2169da9b6545bbf (patch)
treefba5a8d60320c8b159a27c237b4d201e486ec97d /gtk/gtkcssimagelinearprivate.h
parent06454250461f2586cdc4d62fdf4504eb1ba8e163 (diff)
downloadgtk+-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.h3
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;
};