summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2006-03-14 16:50:53 +0000
committerFelipe Heidrich <fheidric>2006-03-14 16:50:53 +0000
commit949a6acdae8a6752ff2755f4e74de4e78ef19857 (patch)
tree5e4b5aa5281781d84a01a3248241addcbb000074 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java
parenta088931c67f6d10c0ddc20563db43702fd782bbd (diff)
downloadeclipse.platform.swt-949a6acdae8a6752ff2755f4e74de4e78ef19857.tar.gz
eclipse.platform.swt-949a6acdae8a6752ff2755f4e74de4e78ef19857.tar.xz
eclipse.platform.swt-949a6acdae8a6752ff2755f4e74de4e78ef19857.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java
index e3a744af44..a44bb7ec21 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java
@@ -116,6 +116,17 @@ public int indexOf (ExpandItem item) {
return -1;
}
+void releaseChildren (boolean destroy) {
+ ExpandItem [] items = getItems ();
+ for (int i=0; i<items.length; i++) {
+ ExpandItem item = items [i];
+ if (item != null && !item.isDisposed ()) {
+ item.release (false);
+ }
+ }
+ super.releaseChildren (destroy);
+}
+
void relayout () {
ExpandItem [] items = getItems ();
int yScroll = 0;