summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2010-12-17 21:48:04 +0000
committerFelipe Heidrich <fheidric>2010-12-17 21:48:04 +0000
commit1c8d6d064e4a8a70316f776a21806c7dda140423 (patch)
treea013b3317233078ea393b78e85ad02a9fd262ac2 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
parentd8c7ac1c238569192a4106f29243a448a4e0192d (diff)
downloadeclipse.platform.swt-1c8d6d064e4a8a70316f776a21806c7dda140423.tar.gz
eclipse.platform.swt-1c8d6d064e4a8a70316f776a21806c7dda140423.tar.xz
eclipse.platform.swt-1c8d6d064e4a8a70316f776a21806c7dda140423.zip
Bug 29779 - BIDI: lack of ability to change orientation of widget in runtime [no public methods yet]
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.java9
1 files changed, 9 insertions, 0 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 81846bcb5c..c0241eaf8d 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
@@ -637,6 +637,15 @@ void setForegroundColor (GdkColor color) {
}
}
+void setOrientation (boolean create) {
+ super.setOrientation (create);
+ if (items != null) {
+ for (int i=0; i<items.length; i++) {
+ if (items[i] != null) items[i].setOrientation (create);
+ }
+ }
+}
+
/**
* Selects the item at the given zero-relative index in the receiver.
* If the item at the index was already selected, it remains selected.