From 0e2f35ed882ab11d010866d32f2f65232145b8d0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 16 Jul 2012 14:48:43 +0200 Subject: css: Introduce dependencies for value computations When values are computed, they might depend on various other values and we need to track this so we can update the values when those other values change. This is the first step in making that happen. This patch does not do any dependency tracking at all, instead it uses GTK_CSS_DEPENDS_ON_EVERYTHING as a sort of FIXME. --- gtk/gtkcssinitialvalue.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gtk/gtkcssinitialvalue.c') diff --git a/gtk/gtkcssinitialvalue.c b/gtk/gtkcssinitialvalue.c index 7bebbc87d7..45cadd7c17 100644 --- a/gtk/gtkcssinitialvalue.c +++ b/gtk/gtkcssinitialvalue.c @@ -33,13 +33,15 @@ gtk_css_value_initial_free (GtkCssValue *value) } static GtkCssValue * -gtk_css_value_initial_compute (GtkCssValue *value, - guint property_id, - GtkStyleContext *context) +gtk_css_value_initial_compute (GtkCssValue *value, + guint property_id, + GtkStyleContext *context, + GtkCssDependencies *dependencies) { return _gtk_css_value_compute (_gtk_css_style_property_get_initial_value (_gtk_css_style_property_lookup_by_id (property_id)), property_id, - context); + context, + dependencies); } static gboolean -- cgit v1.2.1