summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-12-01 14:00:24 +0100
committerBenjamin Otte <otte@redhat.com>2012-12-01 16:27:28 +0100
commita23bc88557f53080dcd6cf59bf024d230f4439b7 (patch)
treeacb6d42aa0b53a656e67c5cc8b99daa338f36881
parent1a61e1ea2357918d0044992dc3c97e6a8c857260 (diff)
downloadgtk+-a23bc88557f53080dcd6cf59bf024d230f4439b7.tar.gz
css: Fix dependencies for font lookup
'larger' and 'smaller' depend on the parent value. D'oh.
-rw-r--r--gtk/gtkcssenumvalue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssenumvalue.c b/gtk/gtkcssenumvalue.c
index e81b7b2d8a..77d5e8eaba 100644
--- a/gtk/gtkcssenumvalue.c
+++ b/gtk/gtkcssenumvalue.c
@@ -197,6 +197,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value,
font_size = get_default_font_size (provider) * 2;
break;
case GTK_CSS_FONT_SIZE_SMALLER:
+ *dependencies = GTK_CSS_DEPENDS_ON_PARENT;
if (parent_values)
font_size = _gtk_css_number_value_get (_gtk_css_computed_values_get_value (parent_values, GTK_CSS_PROPERTY_FONT_SIZE), 100);
else
@@ -205,6 +206,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value,
font_size *= 1.2;
break;
case GTK_CSS_FONT_SIZE_LARGER:
+ *dependencies = GTK_CSS_DEPENDS_ON_PARENT;
if (parent_values)
font_size = _gtk_css_number_value_get (_gtk_css_computed_values_get_value (parent_values, GTK_CSS_PROPERTY_FONT_SIZE), 100);
else