[gtk+] border: Don't special case according to border styles
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] border: Don't special case according to border styles
- Date: Wed, 21 Jan 2015 15:25:31 +0000 (UTC)
commit ba06066158cc2c4e68a8de5706349a2c221c5c58
Author: Benjamin Otte <otte redhat com>
Date: Wed Jan 21 16:22:30 2015 +0100
border: Don't special case according to border styles
This is now done (as it should) in the compute code.
gtk/gtkrenderborder.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c
index 3aa9be5..35a939d 100644
--- a/gtk/gtkrenderborder.c
+++ b/gtk/gtkrenderborder.c
@@ -344,9 +344,7 @@ hide_border_sides (double border[4],
for (i = 0; i < 4; i++)
{
- if (hidden_side & (1 << i) ||
- border_style[i] == GTK_BORDER_STYLE_NONE ||
- border_style[i] == GTK_BORDER_STYLE_HIDDEN)
+ if (hidden_side & (1 << i))
border[i] = 0;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]