diff options
author | Silenio Quarti <silenio> | 2007-04-23 20:00:55 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2007-04-23 20:00:55 +0000 |
commit | 45bd6882b89a28418cf82b050cd85ff9c325f6c8 (patch) | |
tree | 0ffea50a7a3068d1da81a974e0b90f49a72a1052 | |
parent | 0da378dccc96f92d81657f22e07057a3681952d8 (diff) | |
download | eclipse.platform.swt-3336a.tar.gz eclipse.platform.swt-3336a.tar.xz eclipse.platform.swt-3336a.zip |
179105 - Revert CTabItem unselected tab separator style for simple tabsv3336a
2 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java index c5bad5c280..530f24dea3 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java @@ -216,6 +216,7 @@ public class CTabFolder extends Composite { static final int[] SIMPLE_TOP_RIGHT_CORNER = new int[] {-2,0, -1,1, 0,2}; static final int[] SIMPLE_BOTTOM_LEFT_CORNER = new int[] {0,-2, 1,-1, 2,0}; static final int[] SIMPLE_BOTTOM_RIGHT_CORNER = new int[] {-2,0, -1,-1, 0,-2}; + static final int[] SIMPLE_UNSELECTED_INNER_CORNER = new int[] {0,0}; static final int[] TOP_LEFT_CORNER_BORDERLESS = new int[] {0,6, 1,5, 1,4, 4,1, 5,1, 6,0}; static final int[] TOP_RIGHT_CORNER_BORDERLESS = new int[] {-7,0, -6,1, -5,1, -2,4, -2,5, -1,6}; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java index 04fa692450..c3421b150d 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java @@ -507,7 +507,7 @@ void drawRightUnselectedBorder(GC gc) { if (this.parent.onBottom) { int[] right = parent.simple - ? CTabFolder.SIMPLE_BOTTOM_RIGHT_CORNER + ? CTabFolder.SIMPLE_UNSELECTED_INNER_CORNER : CTabFolder.BOTTOM_RIGHT_CORNER; shape = new int[right.length + 2]; @@ -521,7 +521,7 @@ void drawRightUnselectedBorder(GC gc) { shape[index++] = y - 1; } else { int[] right = parent.simple - ? CTabFolder.SIMPLE_TOP_RIGHT_CORNER + ? CTabFolder.SIMPLE_UNSELECTED_INNER_CORNER : CTabFolder.TOP_RIGHT_CORNER; shape = new int[right.length + 2]; @@ -563,7 +563,7 @@ void drawLeftUnselectedBorder(GC gc) { int[] shape = null; if (this.parent.onBottom) { int[] left = parent.simple - ? CTabFolder.SIMPLE_BOTTOM_LEFT_CORNER + ? CTabFolder.SIMPLE_UNSELECTED_INNER_CORNER : CTabFolder.BOTTOM_LEFT_CORNER; shape = new int[left.length + 2]; @@ -576,7 +576,7 @@ void drawLeftUnselectedBorder(GC gc) { } } else { int[] left = parent.simple - ? CTabFolder.SIMPLE_TOP_LEFT_CORNER + ? CTabFolder.SIMPLE_UNSELECTED_INNER_CORNER : CTabFolder.TOP_LEFT_CORNER; shape = new int[left.length + 2]; |