diff options
author | Steve Northover <steve> | 2001-11-15 14:10:47 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2001-11-15 14:10:47 +0000 |
commit | a6baca0c93ee7535e1500c50336143cc4b7239f0 (patch) | |
tree | 4f353a103dcfd8aa4534853b31a445234a524fe4 /bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt | |
parent | 71383ddf70997eb356fc8596e615d7524d8c3273 (diff) | |
download | eclipse.platform.swt-a6baca0c93ee7535e1500c50336143cc4b7239f0.tar.gz eclipse.platform.swt-a6baca0c93ee7535e1500c50336143cc4b7239f0.tar.xz eclipse.platform.swt-a6baca0c93ee7535e1500c50336143cc4b7239f0.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java index b5eddcddc8..e0880f8a49 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java @@ -569,11 +569,12 @@ public void setTabList (Control [] tabList) { Control control = tabList [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
- Shell shell = control.getShell ();
- while (control != shell && control != this) {
- control = control.parent;
- }
- if (control != this) error (SWT.ERROR_INVALID_PARENT);
+// Shell shell = control.getShell ();
+// while (control != shell && control != this) {
+// control = control.parent;
+// }
+// if (control != this) error (SWT.ERROR_INVALID_PARENT);
+ if (control.parent != this) error (SWT.ERROR_INVALID_PARENT);
}
Control [] children = _getChildren ();
for (int i=0; i<children.length; i++) {
|