Re: Opposite of gtk_clist_moveto()
- From: Owen Taylor <otaylor redhat com>
- To: gtk-list redhat com
- Subject: Re: Opposite of gtk_clist_moveto()
- Date: 04 Jan 2000 16:12:51 -0500
Anders Melchiorsen <and@kampsax.dtu.dk> writes:
> Is there a way to get values like one would put into
> gtk_clist_moveto() ? I know gtk_clist_row_is_visible() which can tell
> me if a row is visible. However, I would like to know the exact
> position inside the GtkCList.
>
> What I want to achieve is that I can add and remove rows from a
> GtkCList but have the active row stay at the same physical position
> (assuming that it is not a list with multiple selection on, of
> course).
Since GtkCList has constant height rows, you should be able
to figure out where a particular row is in the CList using:
row * GTK_CLIST (clist)->row_height - GTK_CLIST (clist)->vadjustment->value
It may take a bit of experimentation though to get the effect
you want.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]