summaryrefslogtreecommitdiff
path: root/gtk/gtkcsscolorvalueprivate.h
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/gtkcsscolorvalueprivate.h
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/gtkcsscolorvalueprivate.h')
-rw-r--r--gtk/gtkcsscolorvalueprivate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcsscolorvalueprivate.h b/gtk/gtkcsscolorvalueprivate.h
index 1007b26582..ce490c898a 100644
--- a/gtk/gtkcsscolorvalueprivate.h
+++ b/gtk/gtkcsscolorvalueprivate.h
@@ -24,6 +24,8 @@
G_BEGIN_DECLS
+GtkCssValue * gtk_css_color_value_new_transparent (void);
+GtkCssValue * gtk_css_color_value_new_white (void);
GtkCssValue * _gtk_css_color_value_new_literal (const GdkRGBA *color);
GtkCssValue * _gtk_css_color_value_new_name (const gchar *name);
GtkCssValue * _gtk_css_color_value_new_shade (GtkCssValue *color,
@@ -42,6 +44,7 @@ GtkCssValue * _gtk_css_color_value_resolve (GtkCssValue *color
GtkStyleProvider *provider,
GtkCssValue *current,
GSList *cycle_list);
+const GdkRGBA * gtk_css_color_value_get_rgba (const GtkCssValue *color);
G_END_DECLS