On Wednesday 03 August 2005 12:55 pm, Bill Medland wrote:
> 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

Thanks! That is what I wanted and it worked well.

Kevin


-- 
Get my public GnuPG key from
http://keyserver.veridis.com:11371/export?id=7574690260641978351
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to