diff options
author | Timm Bäder <mail@baedert.org> | 2020-01-11 09:05:07 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-01-18 08:49:51 +0100 |
commit | 00aa4f0597a5af148fcf7f5fe6cd0d082f97ff7a (patch) | |
tree | 832e9e1903612297cb873643b60b4b2ac4949185 /gtk/gtkcssimagelinearprivate.h | |
parent | 3401150cca54b0cd1b9d9b745b1fe5f22d3b5c54 (diff) | |
download | gtk+-00aa4f0597a5af148fcf7f5fe6cd0d082f97ff7a.tar.gz |
cssimagelinear: Use count+array for the color stops, not GArray
This makse sense but will also make later changes to GtkCssImageLinear
simpler.
Diffstat (limited to 'gtk/gtkcssimagelinearprivate.h')
-rw-r--r-- | gtk/gtkcssimagelinearprivate.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkcssimagelinearprivate.h b/gtk/gtkcssimagelinearprivate.h index 42d6907743..438b8396ec 100644 --- a/gtk/gtkcssimagelinearprivate.h +++ b/gtk/gtkcssimagelinearprivate.h @@ -45,10 +45,12 @@ struct _GtkCssImageLinear { GtkCssImage parent; - guint side; /* side the gradient should go to or 0 for angle */ - GtkCssValue *angle; - GArray *stops; + guint side; /* side the gradient should go to or 0 for angle */ guint repeating :1; + GtkCssValue *angle; + + guint n_stops; + GtkCssImageLinearColorStop *color_stops; }; struct _GtkCssImageLinearClass |