Left justify doesn't
| From: | Benjamin Smith | Date: | Fri, 25 Apr 2003 21:18:42 +0000 |
| Subject: | Left justify doesn't | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3301@lists.php.net to get a copy of this message | ||
For some reason, the below code won't left justify the text in the GtkLabels.
Why not? What am I missing?
-Ben
$labels=array(
'a',
'abc',
'Now is the time for all good men to come to the aide of their country'
);
$vbox=&New GtkVbox();
$vbox->Show();
reset($labels);
while (list($k, $label)=each($labels))
{
$label=&New GtkLabel($label);
$label->Set_Justify('GTK_JUSTIFY_LEFT');
$label->Show();
$vbox->Pack_Start($label, false, false);
}
$win=&New GtkWindow();
$win->Add($vbox);
$win->Show();
gtk::main();