diff options
author | Kevin Barnes <krbarnes> | 2008-04-17 16:39:35 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2008-04-17 16:39:35 +0000 |
commit | c0cb99327f422a6f05757fa798dbd585fbf995bd (patch) | |
tree | 127b9d8b40ff4c18f11b507945758aa077e16c19 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java | |
parent | c6d50d4beb48d104d042d023840b166bb3616332 (diff) | |
download | eclipse.platform.swt-c0cb99327f422a6f05757fa798dbd585fbf995bd.tar.gz eclipse.platform.swt-c0cb99327f422a6f05757fa798dbd585fbf995bd.tar.xz eclipse.platform.swt-c0cb99327f422a6f05757fa798dbd585fbf995bd.zip |
226363 - BIDI3.4:HCG TreeColumn has wrong BIDI alignment with style SWT.NONE
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java index 3748732020..f93071e2a3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java @@ -187,6 +187,7 @@ protected void checkSubclass () { void createWidget (int index) { parent.createItem (this, index); + setOrientation (); hookEvents (); register (); text = ""; @@ -562,6 +563,15 @@ public void setMoveable (boolean moveable) { OS.gtk_tree_view_column_set_reorderable (handle, moveable); } +void setOrientation() { + if ((parent.style & SWT.RIGHT_TO_LEFT) != 0) { + if (buttonHandle != 0) { + OS.gtk_widget_set_direction (buttonHandle, OS.GTK_TEXT_DIR_RTL); + OS.gtk_container_forall (buttonHandle, display.setDirectionProc, OS.GTK_TEXT_DIR_RTL); + } + } +} + /** * Sets the resizable attribute. A column that is * not resizable cannot be dragged by the user but |