[gtk/css-style-split-2] colorvalue: Use direct access for css values
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/css-style-split-2] colorvalue: Use direct access for css values
- Date: Tue, 28 Jan 2020 10:06:45 +0000 (UTC)
commit 726cbe9045e7276959c11af66bd7c59bae4f8183
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 28 11:03:27 2020 +0100
colorvalue: Use direct access for css values
gtk/gtkcsscolorvalue.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcsscolorvalue.c b/gtk/gtkcsscolorvalue.c
index 80cc7a3d21..cd80e2db2f 100644
--- a/gtk/gtkcsscolorvalue.c
+++ b/gtk/gtkcsscolorvalue.c
@@ -120,7 +120,7 @@ gtk_css_value_color_get_fallback (guint property_id,
style,
parent_style);
case GTK_CSS_PROPERTY_ICON_PALETTE:
- return _gtk_css_value_ref (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_COLOR));
+ return _gtk_css_value_ref (style->core->color);
default:
if (property_id < GTK_CSS_PROPERTY_N_PROPERTIES)
g_warning ("No fallback color defined for property '%s'",
@@ -147,7 +147,7 @@ gtk_css_value_color_compute (GtkCssValue *value,
GtkCssValue *current;
if (parent_style)
- current = gtk_css_style_get_value (parent_style, GTK_CSS_PROPERTY_COLOR);
+ current = parent_style->core->color;
else
current = NULL;
@@ -162,7 +162,7 @@ gtk_css_value_color_compute (GtkCssValue *value,
}
else
{
- GtkCssValue *current = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_COLOR);
+ GtkCssValue *current = style->core->color;
resolved = _gtk_css_color_value_resolve (value,
provider,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]