summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagelinear.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-01-10 13:02:33 +0100
committerTimm Bäder <mail@baedert.org>2020-01-18 08:49:51 +0100
commit67991ed0f405eca73e4c2f78f3e0d1c6c1a8de2c (patch)
tree96ffafb8af8006940199f547fadc7266cb147daf /gtk/gtkcssimagelinear.c
parent741e12012dcee880d72fd292b62c4d8d5b7dd276 (diff)
downloadgtk+-67991ed0f405eca73e4c2f78f3e0d1c6c1a8de2c.tar.gz
Remove GtkCssRgbaValue
The differenciation between a literal color value and an RGBA value caused problems in various situations. Just treat the two the same but don't allow access to the rgba value of a non-literal color value. This gets rid of around 1.6k rgba values in the widget-factory.
Diffstat (limited to 'gtk/gtkcssimagelinear.c')
-rw-r--r--gtk/gtkcssimagelinear.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcssimagelinear.c b/gtk/gtkcssimagelinear.c
index 16f52afe0f..df9efc8b6a 100644
--- a/gtk/gtkcssimagelinear.c
+++ b/gtk/gtkcssimagelinear.c
@@ -25,7 +25,7 @@
#include "gtkcsscolorvalueprivate.h"
#include "gtkcssnumbervalueprivate.h"
-#include "gtkcssrgbavalueprivate.h"
+#include "gtkcsscolorvalueprivate.h"
#include "gtkcssprovider.h"
G_DEFINE_TYPE (GtkCssImageLinear, _gtk_css_image_linear, GTK_TYPE_CSS_IMAGE)
@@ -194,7 +194,7 @@ gtk_css_image_linear_snapshot (GtkCssImage *image,
linear->stops->len - 1);
gtk_snapshot_append_color (snapshot,
- _gtk_css_rgba_value_get_rgba (stop->color),
+ gtk_css_color_value_get_rgba (stop->color),
&GRAPHENE_RECT_INIT (0, 0, width, height));
return;
}
@@ -240,7 +240,7 @@ gtk_css_image_linear_snapshot (GtkCssImage *image,
offset += step;
stops[last].offset = (offset - start) / (end - start);
- stops[last].color = *_gtk_css_rgba_value_get_rgba (stop->color);
+ stops[last].color = *gtk_css_color_value_get_rgba (stop->color);
}
offset = pos;