From 45bd6882b89a28418cf82b050cd85ff9c325f6c8 Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Mon, 23 Apr 2007 20:00:55 +0000 Subject: 179105 - Revert CTabItem unselected tab separator style for simple tabs --- .../common/org/eclipse/swt/custom/CTabFolder.java | 1 + .../common/org/eclipse/swt/custom/CTabItem.java | 8 ++++---- 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]; -- cgit