diff options
author | Felipe Heidrich <fheidric> | 2005-02-25 22:25:58 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2005-02-25 22:25:58 +0000 |
commit | 94c141dfb85857d40b2d74b967ba34770a0ca734 (patch) | |
tree | 8f635c703afd57e70e12204083ae8cd95efcf69d /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java | |
parent | ba96fef729f62a881458f07b3b1d07d773b24117 (diff) | |
download | eclipse.platform.swt-94c141dfb85857d40b2d74b967ba34770a0ca734.tar.gz eclipse.platform.swt-94c141dfb85857d40b2d74b967ba34770a0ca734.tar.xz eclipse.platform.swt-94c141dfb85857d40b2d74b967ba34770a0ca734.zip |
41546
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java index 4f41b2e3a1..26d7203e60 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java @@ -183,6 +183,7 @@ protected void checkSubclass () { void createWidget (int index) { parent.createItem (this, index); + setOrientation (); hookEvents (); register (); text = ""; @@ -530,6 +531,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); + } + } +} + public void setText (String string) { checkWidget(); if (string == null) error (SWT.ERROR_NULL_ARGUMENT); |