Re: set_justify() not work?

From: Date: Sun, 19 Dec 2004 14:51:14 +0000
Subject: Re: set_justify() not work?
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5370@lists.php.net to get a copy of this message
Hi Alistair,
SET_JUSTIFY works with multiline texts only. To align single line labels, you have to use the x_align setting.
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.
Sorry that I misunderstood you first. The problem you describe here can't be solved with Gtk 1.x. It works perfectly in Gtk2, but on Gtk1 it's a bug. What I meant with set_align is that you can align a label to the right or left by setting the xalign to 1 or 0 - if it's single line. But that has nothing to do with your problem. Regards/MfG, Christian Weiske -- XMMS is playing now: The Cardigans -

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#5370) next »