Re: set_justify() not work?

From: Date: Sun, 19 Dec 2004 14:14:26 +0000
Subject: Re: set_justify() not work?
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5369@lists.php.net to get a copy of this message
On Sun, 19 Dec 2004, Christian Weiske wrote:
If I do set_justify(GTK_JUSTIFY_FILL) then it works as expected but if I do set_justify(GTK_JUSTIFY_CENTER) or set_justify(GTK_JUSTIFY_RIGHT) then the label is just left aligned.
I thought this was mentioned in the manual somewhere, but I don't know exactly where: SET_JUSTIFY works with multiline texts only. To align single line labels, you have to use the x_align setting.
Thanks for your reply - I'm not sure that using set_align will help though. As I understand it that is for setting the position of the label widget within its container widger. My problem is that I cannot get line-wrapped text to center within the container widget. The GtkLabel()s I have tried are multi-line. Using set_justify() seems to work on labels where \n is used as part of the label text but where set_line_wrap() is used the set_justify is simply ignored - the text is always left-aligned. Ali -- Alistair Riddell - BOFH IT Manager, George Watson's College, Edinburgh Tel: +44 131 446 6070 Fax: +44 131 446 6090 Microsoft - because god hates us

« previous php.gtk.general (#5369) next »