summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagefallback.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/gtkcssimagefallback.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/gtkcssimagefallback.c')
-rw-r--r--gtk/gtkcssimagefallback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssimagefallback.c b/gtk/gtkcssimagefallback.c
index 6536a8dd0a..8d8ca30b52 100644
--- a/gtk/gtkcssimagefallback.c
+++ b/gtk/gtkcssimagefallback.c
@@ -21,7 +21,7 @@
#include "gtkcssimagefallbackprivate.h"
#include "gtkcsscolorvalueprivate.h"
-#include "gtkcssrgbavalueprivate.h"
+#include "gtkcsscolorvalueprivate.h"
#include "gtkstyleproviderprivate.h"
@@ -74,7 +74,7 @@ gtk_css_image_fallback_snapshot (GtkCssImage *image,
const GdkRGBA *color;
if (fallback->color)
- color = _gtk_css_rgba_value_get_rgba (fallback->color);
+ color = gtk_css_color_value_get_rgba (fallback->color);
else
color = &red;