diff options
author | Steve Northover <steve> | 2004-10-14 21:56:47 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2004-10-14 21:56:47 +0000 |
commit | bb4bcf269d79e4bbfbecea2088c8afbce7fcac2e (patch) | |
tree | 7d88c562e955d2f545648c705007c968799f05ed /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java | |
parent | ec4463e5809457fec0c4e8fa95d96c7900df01c5 (diff) | |
download | eclipse.platform.swt-bb4bcf269d79e4bbfbecea2088c8afbce7fcac2e.tar.gz eclipse.platform.swt-bb4bcf269d79e4bbfbecea2088c8afbce7fcac2e.tar.xz eclipse.platform.swt-bb4bcf269d79e4bbfbecea2088c8afbce7fcac2e.zip |
fix extra layout when moved
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java index 62b914c5cf..8deb5a75ce 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java @@ -565,9 +565,9 @@ public void removeSelectionListener (SelectionListener listener) { eventTable.unhook (SWT.DefaultSelection,listener); } -boolean setBounds (int x, int y, int width, int height, boolean move, boolean resize) { - boolean changed = super.setBounds (x, y, width, height, move, resize); - if (changed && resize) { +int setBounds (int x, int y, int width, int height, boolean move, boolean resize) { + int result = super.setBounds (x, y, width, height, move, resize); + if ((result & RESIZED) != 0) { int index = getSelectionIndex (); if (index != -1) { TabItem item = items [index]; @@ -577,7 +577,7 @@ boolean setBounds (int x, int y, int width, int height, boolean move, boolean re } } } - return changed; + return result; } void setFontDescription (int /*long*/ font) { |