[gtk/wip/baedert/for-master: 29/29] csscolorvalue: return the initial color value directly



commit a6a43db74b56a8d5d08f274e8127b9e83ecb4a83
Author: Timm Bäder <mail baedert org>
Date:   Fri Aug 23 09:07:29 2019 +0200

    csscolorvalue: return the initial color value directly

 gtk/gtkcsscolorvalue.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gtk/gtkcsscolorvalue.c b/gtk/gtkcsscolorvalue.c
index 5bd3185d84..64527a8a26 100644
--- a/gtk/gtkcsscolorvalue.c
+++ b/gtk/gtkcsscolorvalue.c
@@ -235,10 +235,7 @@ _gtk_css_color_value_resolve (GtkCssValue      *color,
         }
       else
         {
-          return _gtk_css_color_value_resolve (_gtk_css_style_property_get_initial_value 
(_gtk_css_style_property_lookup_by_id (GTK_CSS_PROPERTY_COLOR)),
-                                               provider,
-                                               NULL,
-                                               cycle_list);
+          return _gtk_css_value_ref (_gtk_css_style_property_get_initial_value 
(_gtk_css_style_property_lookup_by_id (GTK_CSS_PROPERTY_COLOR)));
         }
       break;
     default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]