From 60b8b7a398900c882640726bc28a25484f04bdb7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 3 Jan 2012 05:06:30 +0100 Subject: [PATCH] csslookup: Use the new gtk_style_context_peek_property() --- gtk/gtkcsslookup.c | 8 ++++---- 1 file 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,