summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2005-02-24 20:11:20 +0000
committerFelipe Heidrich <fheidric>2005-02-24 20:11:20 +0000
commitdc163acc999f49574a7716c8544d06878328a7cc (patch)
tree1874724b42e820252ff1315578f2e9bc457270cc /bundles
parent36c1afb21029d5c258d8f9b4d9ba73d75ef8a7dd (diff)
downloadeclipse.platform.swt-dc163acc999f49574a7716c8544d06878328a7cc.tar.gz
eclipse.platform.swt-dc163acc999f49574a7716c8544d06878328a7cc.tar.xz
eclipse.platform.swt-dc163acc999f49574a7716c8544d06878328a7cc.zip
41363
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java
index 7f084c5db5..275f001f69 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java
@@ -115,6 +115,7 @@ protected void checkSubclass () {
void createWidget (int index) {
parent.createItem (this, index);
+ setOrientation ();
hookEvents ();
register ();
text = "";
@@ -268,6 +269,15 @@ public void setImage (Image image) {
}
}
+void setOrientation () {
+ if ((parent.style & SWT.RIGHT_TO_LEFT) != 0) {
+ if (handle != 0) OS.gtk_widget_set_direction (handle, OS.GTK_TEXT_DIR_RTL);
+ if (labelHandle != 0) OS.gtk_widget_set_direction (labelHandle, OS.GTK_TEXT_DIR_RTL);
+ if (imageHandle != 0) OS.gtk_widget_set_direction (imageHandle, OS.GTK_TEXT_DIR_RTL);
+ if (pageHandle != 0) OS.gtk_widget_set_direction (pageHandle, OS.GTK_TEXT_DIR_RTL);
+ }
+}
+
/**
* Sets the receiver's text. The string may include
* the mnemonic character.