[gtk+] themingbackground: Outset shadows require border box
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] themingbackground: Outset shadows require border box
- Date: Fri, 23 May 2014 17:32:13 +0000 (UTC)
commit 6c49ffe9164521a1c511fb975136b52e25157f30
Author: Benjamin Otte <otte redhat com>
Date: Fri May 23 19:27:53 2014 +0200
themingbackground: Outset shadows require border box
They are drawn relative to the border box, not relative to the padding
box.
gtk/gtkthemingbackground.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index 706752b..380eb5a 100644
--- a/gtk/gtkthemingbackground.c
+++ b/gtk/gtkthemingbackground.c
@@ -270,7 +270,7 @@ _gtk_theming_background_apply_shadow (GtkThemingBackground *bg,
{
_gtk_css_shadows_value_paint_box (_gtk_style_context_peek_property (bg->context,
GTK_CSS_PROPERTY_BOX_SHADOW),
cr,
- &bg->padding_box,
+ inset ? &bg->padding_box : &bg->border_box,
inset);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]