Re: TreeModel and visible rows



stian nixia no schrieb:

Hello list,

how can i determine the number of visible rows of currently displayed
TreeModel?

The reason why i'm asking is that i'm trying to only append as much rows
as the tree model can display without the need to be scrolled by an
ScrolledWindow.

Hmmm... A row can have dynamic height depending on what is inside it. If
you have a text, and wraping is enabled, the height is very, variable. You
could avoid embedding the treeview into a scrolling widget, so it always
has a minimum-height that shows all entries.

Currently i'm setting a constant value (e.g. 13), and display only
the latest # datasets in a row.

My software updates the TreeModel (Liststore) every 0.5sec., to
update the TreeModel i'm clearing it and appending my latest
datasets.

I'm having 3k datasets and couldn't append every 0.5sec. all
my datasets just to display the latests visible rows. But the
TreeModel or the Liststore should know how many rows are
visible, cause they are drawing it, i thought/hoped there where
a function like gtk_list_store_get_visible_rows().

If i would drop the ScrollingWidget, is there a way to determine
the visible rows?

Thanks in advance.

best regards,
Seika van Olstroem



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]