diff options
author | Benjamin Otte <otte@redhat.com> | 2012-01-03 05:06:30 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:57 +0100 |
commit | 60b8b7a398900c882640726bc28a25484f04bdb7 (patch) | |
tree | 472685684d447c09e45b5fc2ed6fd4cc24f9ed70 /gtk/gtkcsslookup.c | |
parent | 53b4fd69db25d7fa8abd6741363196b6a53fb631 (diff) | |
download | gtk+-60b8b7a398900c882640726bc28a25484f04bdb7.tar.gz |
csslookup: Use the new gtk_style_context_peek_property()
Diffstat (limited to 'gtk/gtkcsslookup.c')
-rw-r--r-- | gtk/gtkcsslookup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcsslookup.c b/gtk/gtkcsslookup.c index af4eddfd41..ff833cb0fb 100644 --- a/gtk/gtkcsslookup.c +++ b/gtk/gtkcsslookup.c @@ -207,10 +207,10 @@ _gtk_css_lookup_resolve (GtkCssLookup *lookup, else { /* Set NULL here and do the inheritance upon lookup? */ - gtk_style_context_get_property (parent, - _gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop)), - gtk_style_context_get_state (parent), - &value); + result = _gtk_style_context_peek_property (parent, + _gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop))); + g_value_init (&value, G_VALUE_TYPE (result)); + g_value_copy (result, &value); } _gtk_style_properties_set_property_by_property (props, |