Re: Label Alignment



On August 3, 2005 11:37 am, Kevin DeKorte wrote:
I'm adding a GTKLabel into a GTKTable

Doing this

    conf_label = gtk_label_new(_("Cache Size:"));
    gtk_table_attach_defaults(GTK_TABLE(conf_table),
conf_label, 0, 1, 3, 4);
    gtk_widget_show(conf_label);


Works great, but the label is centered, I would like it to be
left aligned. I looked at the gtk_label_set_justify and said
that GTK_LEFT_JUSTIFY is the default, so how to I align the
label within the table container.

Thanks,

Kevin

Try adding:
gtk_misc_set_alignment (GTK_MISC(conf_label), 0.0, 0.0);

I think it may be what you want

-- 
Bill Medland
mailto:billmedland mercuryspeed com
http://webhome.idirect.com/~kbmed




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