Center text with multiple lines using cellrenderer

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

 



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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux