diff options
author | Silenio Quarti <silenio> | 2002-12-05 23:26:07 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2002-12-05 23:26:07 +0000 |
commit | d7016b3e4f15eb4576cf5f90b452222bc89b54d9 (patch) | |
tree | 21e3fbb98e2f62798f0e97f52691b2efb143b64c | |
parent | 74c55d1ab903acf012def12d921c186e052fd81a (diff) | |
download | eclipse.platform.swt-d7016b3e4f15eb4576cf5f90b452222bc89b54d9.tar.gz eclipse.platform.swt-d7016b3e4f15eb4576cf5f90b452222bc89b54d9.tar.xz eclipse.platform.swt-d7016b3e4f15eb4576cf5f90b452222bc89b54d9.zip |
*** empty log message ***
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java index a6ae804143..51650600c8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java @@ -216,14 +216,6 @@ int defaultThemeFont () { return OS.kThemePushButtonFont; } -void destroyWidget () { - if (cIcon != 0) { - destroyCIcon(cIcon); - cIcon = 0; - } - super.destroyWidget(); -} - public int getAlignment () { checkWidget (); if ((style & SWT.ARROW) != 0) { @@ -305,6 +297,14 @@ int kEventControlSetFocusPart (int nextHandler, int theEvent, int userData) { return result; } +void releaseWidget () { + super.releaseWidget (); + if (cIcon != 0) { + destroyCIcon (cIcon); + cIcon = 0; + } +} + public void removeSelectionListener(SelectionListener listener) { checkWidget(); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); |