Skip to content

Commit 64c168e

Browse files
committed
Remove obsolete "simple" field from CTabFolder
With the recent removal of curved tabs from CTabFolder/CTabFolderRenderer, the CTabFolder property "simple" is effectively always true. In order to avoid accidental usages and changes of the according field, this change removes the field and makes the accessors just always yield true.
1 parent 88441a9 commit 64c168e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ public class CTabFolder extends Composite {
116116
/* sizing, positioning */
117117
boolean onBottom = false;
118118
boolean single = false;
119-
boolean simple = true;
120119
int fixedTabHeight = SWT.DEFAULT;
121120
int tabHeight;
122121
int minChars = 20;
@@ -1254,7 +1253,7 @@ public int getSelectionIndex() {
12541253
@Deprecated(forRemoval = true, since = "2026-06")
12551254
public boolean getSimple() {
12561255
checkWidget();
1257-
return simple;
1256+
return true;
12581257
}
12591258
/**
12601259
* Returns <code>true</code> if the CTabFolder only displays the selected tab
@@ -2151,7 +2150,6 @@ void onResize(Event event) {
21512150
int x1 = Math.min(size.x, oldSize.x);
21522151
Rectangle trim = renderer.computeTrim(CTabFolderRenderer.PART_BODY, SWT.NONE, 0, 0, 0, 0);
21532152
if (size.x != oldSize.x) x1 -= trim.width + trim.x - marginWidth + 2;
2154-
if (!simple) x1 -= 5; // rounded top right corner
21552153
int y1 = Math.min(size.y, oldSize.y);
21562154
if (size.y != oldSize.y) y1 -= trim.height + trim.y - marginHeight;
21572155
int x2 = Math.max(size.x, oldSize.x);

0 commit comments

Comments
 (0)