diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-31 05:42:28 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:15 +0200 |
commit | 31565139bacde73f519f8e5a4c40e98b53100313 (patch) | |
tree | 96c880eef0f00543018c3bba960bd17364dce064 /gtk/gtkcssstylepropertyimpl.c | |
parent | 5d8789680ec645f93ccfbde88b0a2fee5dfbf00c (diff) | |
download | gtk+-31565139bacde73f519f8e5a4c40e98b53100313.tar.gz |
stylecontext: Convert _gtk_style_context_peek_property()
Take the property id instead of the name.
Diffstat (limited to 'gtk/gtkcssstylepropertyimpl.c')
-rw-r--r-- | gtk/gtkcssstylepropertyimpl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c index e3abc7c7e9..b2ee619d54 100644 --- a/gtk/gtkcssstylepropertyimpl.c +++ b/gtk/gtkcssstylepropertyimpl.c @@ -834,15 +834,12 @@ compute_border_width (GtkCssStyleProperty *property, GtkStyleContext *context, GtkCssValue *specified) { - GtkCssStyleProperty *style; GtkBorderStyle border_style; /* The -1 is magic that is only true because we register the style * properties directly after the width properties. */ - style = _gtk_css_style_property_lookup_by_id (_gtk_css_style_property_get_id (property) - 1); - - border_style = _gtk_css_border_style_value_get (_gtk_style_context_peek_property (context, _gtk_style_property_get_name (GTK_STYLE_PROPERTY (style)))); + border_style = _gtk_css_border_style_value_get (_gtk_style_context_peek_property (context, _gtk_css_style_property_get_id (property) - 1)); if (border_style == GTK_BORDER_STYLE_NONE || border_style == GTK_BORDER_STYLE_HIDDEN) |