]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkcssshadowsvalue.c
css: Introduce dependencies for value computations
[~andy/gtk] / gtk / gtkcssshadowsvalue.c
index 387076eb38492cef7bbff4b5d1dd78770058c52f..ce37d86b4d8d411bbeeff24abaaf1c85455c2a51 100644 (file)
@@ -48,9 +48,10 @@ gtk_css_value_shadows_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_shadows_compute (GtkCssValue     *value,
-                               guint            property_id,
-                               GtkStyleContext *context)
+gtk_css_value_shadows_compute (GtkCssValue        *value,
+                               guint               property_id,
+                               GtkStyleContext    *context,
+                               GtkCssDependencies *dependencies)
 {
   GtkCssValue *result;
   guint i;
@@ -58,10 +59,12 @@ gtk_css_value_shadows_compute (GtkCssValue     *value,
   if (value->len == 0)
     return _gtk_css_value_ref (value);
 
+  *dependencies = GTK_CSS_DEPENDS_ON_EVERYTHING;
+
   result = gtk_css_shadows_value_new (value->values, value->len);
   for (i = 0; i < value->len; i++)
     {
-      result->values[i] = _gtk_css_value_compute (value->values[i], property_id, context);
+      result->values[i] = _gtk_css_value_compute (value->values[i], property_id, context, NULL);
     }
 
   return result;