Re: set_justify() not work?

From: Date: Wed, 22 Dec 2004 08:36:25 +0000
Subject: Re: set_justify() not work?
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5393@lists.php.net to get a copy of this message
On Sun, 19 Dec 2004, Christian Weiske wrote:
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.
OK thanks - guess I'll have to go and write my own line-wrapping function! -- 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 (#5393) next »