summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/carbon/org
diff options
context:
space:
mode:
authorAndre Weinand <aweinand>2002-10-22 21:42:20 +0000
committerAndre Weinand <aweinand>2002-10-22 21:42:20 +0000
commit533fa0b4db36012e7cdb0d4f3a9e30b894a2e049 (patch)
tree91158d1f7caf48ce2aecb36cd7779aec0a21fd6d /bundles/org.eclipse.swt/Eclipse SWT/carbon/org
parentebb41cd160718834aa65e439f53ed5c24f2fbfe9 (diff)
downloadeclipse.platform.swt-533fa0b4db36012e7cdb0d4f3a9e30b894a2e049.tar.gz
eclipse.platform.swt-533fa0b4db36012e7cdb0d4f3a9e30b894a2e049.tar.xz
eclipse.platform.swt-533fa0b4db36012e7cdb0d4f3a9e30b894a2e049.zip
fixed a problem with initial visibility of controls
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/carbon/org')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
index e4c5860fce..0af536f5cf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
@@ -2276,15 +2276,10 @@ public void setToolTipText (String string) {
*/
public void setVisible (boolean visible) {
checkWidget();
- if (visible == false)
- visible= visible;
if (this.visible != visible) {
this.visible= visible;
- int topHandle = topHandle ();
- if (OS.IsControlVisible(topHandle) != visible) {
- OS.HIViewSetVisible(topHandle, visible);
- sendEvent (visible ? SWT.Show : SWT.Hide);
- }
+ OS.HIViewSetVisible(topHandle(), visible);
+ sendEvent (visible ? SWT.Show : SWT.Hide);
}
}
void setZOrder (Control control, boolean above) {