Re: [gtk-list] Re: CList scrolling
- From: Stephen Witkop <switk worldnet att net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: CList scrolling
- Date: Mon, 25 Jan 1999 22:18:42 -0500
Damon Chaplin wrote:
>
> Stephen Witkop wrote:
> >
> > I have a clist that I would like to have scroll to the bottom
> > automatically when an item is appended to it like the text widget does.
> > I realize that the default behavior is to not scroll on it's own, which
> > is preferable most of the time, but I need it to work the other way in
> > this situation. I've played with the vadj of the scrolled window and the
> > clist, but I am not having much luck.
>
> I think you want to use gtk_clist_moveto (). The font selection widget
> uses it quite a bit:
>
> index = GPOINTER_TO_INT (selection->data);
> if (gtk_clist_row_is_visible(GTK_CLIST(fontsel->font_clist), index)
> != GTK_VISIBILITY_FULL)
> gtk_clist_moveto(GTK_CLIST(fontsel->font_clist), index, -1, 0.5, 0);
>
> Damon
>
> --
Thanks Dave and Damon for the answers. I must have looked right past
that line in the header file ten times and didn't see it. Of course it
was in the tutorial also, duh! Actually, I was concentrating more on
gtkscrolledwindow.h thinking the answer was there.
--
Stephen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]