summaryrefslogtreecommitdiff
path: root/gtk/gtkcssenumvalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-14 02:27:39 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:31 +0100
commitda25771e5861440cc487c4dab37b20f1a704557b (patch)
treebde5aa8486441d14be49f7df08c8e4f4f5e0daaa /gtk/gtkcssenumvalue.c
parente95985da26c8fed22b9e05aa3ff9b4a5a53e3ad4 (diff)
downloadgtk+-da25771e5861440cc487c4dab37b20f1a704557b.tar.gz
cssvalue: Remove GtkCssDependencies
They are not used anymore.
Diffstat (limited to 'gtk/gtkcssenumvalue.c')
-rw-r--r--gtk/gtkcssenumvalue.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/gtk/gtkcssenumvalue.c b/gtk/gtkcssenumvalue.c
index e9ee788bb6..1e105f6b90 100644
--- a/gtk/gtkcssenumvalue.c
+++ b/gtk/gtkcssenumvalue.c
@@ -42,8 +42,7 @@ gtk_css_value_enum_compute (GtkCssValue *value,
guint property_id,
GtkStyleProviderPrivate *provider,
GtkCssStyle *style,
- GtkCssStyle *parent_style,
- GtkCssDependencies *dependencies)
+ GtkCssStyle *parent_style)
{
return _gtk_css_value_ref (value);
}
@@ -165,8 +164,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value,
guint property_id,
GtkStyleProviderPrivate *provider,
GtkCssStyle *style,
- GtkCssStyle *parent_style,
- GtkCssDependencies *dependencies)
+ GtkCssStyle *parent_style)
{
double font_size;
@@ -197,7 +195,6 @@ gtk_css_value_font_size_compute (GtkCssValue *value,
font_size = _gtk_css_font_size_get_default (provider) * 2;
break;
case GTK_CSS_FONT_SIZE_SMALLER:
- *dependencies = GTK_CSS_DEPENDS_ON_PARENT;
if (parent_style)
font_size = _gtk_css_number_value_get (gtk_css_style_get_value (parent_style, GTK_CSS_PROPERTY_FONT_SIZE), 100);
else
@@ -206,7 +203,6 @@ 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_style)
font_size = _gtk_css_number_value_get (gtk_css_style_get_value (parent_style, GTK_CSS_PROPERTY_FONT_SIZE), 100);
else
@@ -376,8 +372,7 @@ gtk_css_value_font_weight_compute (GtkCssValue *value,
guint property_id,
GtkStyleProviderPrivate *provider,
GtkCssStyle *style,
- GtkCssStyle *parent_style,
- GtkCssDependencies *dependencies)
+ GtkCssStyle *parent_style)
{
PangoWeight new_weight;
int parent_value;
@@ -385,8 +380,6 @@ gtk_css_value_font_weight_compute (GtkCssValue *value,
if (value->value >= 0)
return _gtk_css_value_ref (value);
- *dependencies = GTK_CSS_DEPENDS_ON_PARENT;
-
if (parent_style)
parent_value = gtk_css_style_get_value (parent_style, property_id)->value;
else