Re: Alignment of text within a label

On Apr 24, 2005, at 7:14 AM, Eduardo M KALINOWSKI wrote:

ofey aikon wrote:

$small->set_justify('left'); # I thought this'll do it but it doesn't

What you need is $small->set_alignment(0, 0.5)

to clarify --- GtkLabel isa GtkMisc, and Gtk2::Misc::set_alignment() controls where within the widget's allocation the contents are drawn. Gtk2::Label;:set_justify() controls justification of text in multiline label layouts. alignment justify

muppet <scott at asofyet dot org>

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