summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshadowsvalue.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-08-25 11:22:14 -0400
committerBenjamin Otte <otte@redhat.com>2012-08-28 15:42:24 +0200
commit27fd3fdf818541948ec9077143cebf32b71f801f (patch)
tree80a9dfb00a342ca2f9c8e7b88247c605c061bc22 /gtk/gtkcssshadowsvalue.c
parent012526241a1024256459c127065603a5fd11cfd3 (diff)
downloadgtk+-27fd3fdf818541948ec9077143cebf32b71f801f.tar.gz
css: Handle some more simple cases of dependencies
Diffstat (limited to 'gtk/gtkcssshadowsvalue.c')
-rw-r--r--gtk/gtkcssshadowsvalue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcssshadowsvalue.c b/gtk/gtkcssshadowsvalue.c
index ce37d86b4d..78e092a6b1 100644
--- a/gtk/gtkcssshadowsvalue.c
+++ b/gtk/gtkcssshadowsvalue.c
@@ -54,17 +54,17 @@ gtk_css_value_shadows_compute (GtkCssValue *value,
GtkCssDependencies *dependencies)
{
GtkCssValue *result;
+ GtkCssDependencies child_deps;
guint i;
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, NULL);
+ result->values[i] = _gtk_css_value_compute (value->values[i], property_id, context, &child_deps);
+ *dependencies = _gtk_css_dependencies_union (*dependencies, child_deps);
}
return result;