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/gtkcssrgbavalue.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/gtkcssrgbavalue.c')
-rw-r--r-- | gtk/gtkcssrgbavalue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssrgbavalue.c b/gtk/gtkcssrgbavalue.c index 61d8b1f8c5..490ca35f12 100644 --- a/gtk/gtkcssrgbavalue.c +++ b/gtk/gtkcssrgbavalue.c @@ -117,13 +117,13 @@ _gtk_css_rgba_value_compute_from_symbolic (GtkCssValue *rgba, GtkStyleContext *parent = gtk_style_context_get_parent (context); if (parent) - return _gtk_css_value_ref (_gtk_style_context_peek_property (parent, "color")); + return _gtk_css_value_ref (_gtk_style_context_peek_property (parent, GTK_CSS_PROPERTY_COLOR)); else return _gtk_css_rgba_value_compute_from_symbolic (fallback, NULL, context, TRUE); } else { - return _gtk_css_value_ref (_gtk_style_context_peek_property (context, "color")); + return _gtk_css_value_ref (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_COLOR)); } } |