Center text with multiple lines using cellrenderer



Hi,

I need to have text with multiple lines (separated by \n) displayed with a cell renderer. Using Xalign=0.5, the cell gets centered in the column, but the text inside the box doesn't.

What happens:

|                Column                |
|--------------------------------------|
|        This is a line of text.       |
|        And this too.                 |
|--------------------------------------|


What should happen:

|                Column                |
|--------------------------------------|
|        This is a line of text.       |
|             And this too.            |
|--------------------------------------|



Is there a way to do this with a cell renderer?

-- 
Pedro Castro

http://mega.ist.utl.pt/~prmc


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]