Anders Melchiorsen <[EMAIL PROTECTED]> 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
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null