Re: [gtk-list] Re: Optimum way to set the width of a clist
- From: lightmanaj earthlink net
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Optimum way to set the width of a clist
- Date: Wed, 22 Sep 1999 21:08:49 -0700
> On Wed, 22 Sep 1999 lightmanaj@earthlink.net wrote:
> > The gtk+ tutorial suggests that we hard-code our column widths in
> > a clist. However, what I want to do instead is to take the width of
> > the longest row and use that as the width of the entire column.
> > That way, the size of the clist won't be dependent upon the font or
> > the theme that a user has configured. Is this possible?
> >
>
> There's a function gtk_clist_set_autosize() or something like that,
> it can be a bit weird because sometimes the columns self-size, but
> it will do what you want.
Thanks Havoc. This function worked. However, I'm now creating a
scrolled window which will contain this widget. Is there a way to
make the width of the scrolled window the same as the width of the
entire clist?
Thanks,
--Arthur
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]