Community
Participate
Working Groups
Here is are sample code: ... Text text = new Text(parent, SWT.BORDER | SWT.RIGHT); ... TableColumn column = new TableColumn(table, SWT.RIGHT); /******* Or TableColumn column = new TableColumn(table, SWT.NONE); column.setAlignment(SWT.RIGHT) *****************/ ... When I tested on Win32 (Windows 2000) it work fine (the data in the Text widget and TableColumn are right justified). But on the Linux-GTK it doesn't work (all are left justified)
SSQ, didn't you just fix this?
Yes, it is fixed in HEAD. *** This bug has been marked as a duplicate of 37172 ***
Not all yet, What I found out it's just fixed on ColumnHeader, but Column Items are still left justified. In addition the Text case not fixed yet
Sorry, I did not see that the problem was against Text too. The column items are aligned properly for me. What GTK version are you running on? Mine is GTK 2.2.1-4.
Alignment for multi text has been implemented although it only works if the wrap flag is set due a GTK limitation. There is no support for single line text.
I've enter a bug against GTK about the problem with right alignment and wordwrap: http://bugzilla.gnome.org/show_bug.cgi?id=120256 This is more important on BIDI where the default alignment fails, see bug#41474.
Changed title to reflect the problem.
*** Bug 71035 has been marked as a duplicate of this bug. ***
The upstream bug is now fixed, and both the column items and header text seem correct for me using GTK+ 2.6.4.
Issue seems to be fixed for very long time. Verified not reproducible with Luna I-builds. Closing. Please reopen if you still experience the issue with supported swt version.