diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-28 01:03:39 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:13 +0200 |
commit | 281d094b426ac6c9f0b0280fbbfe55ed0fdc0aa5 (patch) | |
tree | 211bec9a7a8156c0cb0938b758c45ce406285729 /gtk/gtkthemingbackground.c | |
parent | a33df2d1d6c0248df88f9acdca8929541e8206d4 (diff) | |
download | gtk+-281d094b426ac6c9f0b0280fbbfe55ed0fdc0aa5.tar.gz |
theming: Use peek_property() calls to query shadows
Diffstat (limited to 'gtk/gtkthemingbackground.c')
-rw-r--r-- | gtk/gtkthemingbackground.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c index fee8606525..151542939f 100644 --- a/gtk/gtkthemingbackground.c +++ b/gtk/gtkthemingbackground.c @@ -303,14 +303,11 @@ _gtk_theming_background_apply_shadow (GtkThemingBackground *bg, { GtkShadow *box_shadow; - gtk_style_context_get (bg->context, bg->flags, - "box-shadow", &box_shadow, - NULL); + box_shadow = _gtk_css_value_get_shadow (_gtk_style_context_peek_property (bg->context, "box-shadow")); if (box_shadow != NULL) { _gtk_box_shadow_render (box_shadow, cr, &bg->padding_box); - _gtk_shadow_unref (box_shadow); } } |