Re: Label Alignment



Jay,

GtkLabel derives from GtkMisc, which has an alignment
method that you can use to left justify the text...

  gtk_misc_set_alignment(GTK_MISC(label),
                         0.0,
                         GTK_MISC(label)->yalign);

I think gtk_label_set_justify() only applies when you
have multi-line labels.

Darin



Jay LeBlanc wrote:

Is there a trick to get labels to Left Justify? I have a window which contains a 13x13 table. I attach some pixmaps to the table and then I attempt to attach a label spanning multiple columns of the table. It centers the text. I
tried gtk_label_set_justify specifying
GTK_JUSTIFY_LEFT but it still appears to be centered. Any ideas?

Thanks,
Jay
-----------------------------------------------------
http://eo.yifan.net
Free POP3/Web Email, File Manager, Calendar and Address Book

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list





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