Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 37530 - Styles RIGHT, CENTER in Text don't work
Summary: Styles RIGHT, CENTER in Text don't work
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 71035 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-12 23:31 EDT by Cuong George CLA
Modified: 2014-02-13 09:10 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cuong George CLA 2003-05-12 23:31:43 EDT
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)
Comment 1 Steve Northover CLA 2003-05-16 11:11:37 EDT
SSQ, didn't you just fix this?
Comment 2 Silenio Quarti CLA 2003-05-16 12:26:51 EDT
Yes, it is fixed in HEAD.

*** This bug has been marked as a duplicate of 37172 ***
Comment 3 Cuong George CLA 2003-05-16 16:44:37 EDT
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
Comment 4 Silenio Quarti CLA 2003-05-20 15:09:18 EDT
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.
Comment 5 Felipe Heidrich CLA 2003-05-23 17:16:24 EDT
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.

Comment 6 Felipe Heidrich CLA 2003-08-19 11:13:16 EDT
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.
Comment 7 Steve Northover CLA 2004-02-11 10:56:36 EST
Changed title to reflect the problem.
Comment 8 Felipe Heidrich CLA 2004-08-05 14:35:35 EDT
*** Bug 71035 has been marked as a duplicate of this bug. ***
Comment 9 Billy Biggs CLA 2005-04-24 19:40:57 EDT
The upstream bug is now fixed, and both the column items and header text seem
correct for me using GTK+ 2.6.4.
Comment 10 Alexander Kurtakov CLA 2014-02-13 09:10:22 EST
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.