Re: Virtual list boxes (using GtkTreeView or other)
- From: "Nuno Lucas" <ntlucas gmail com>
- To: "Andreas Stricker" <andreas stricker fela ch>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Virtual list boxes (using GtkTreeView or other)
- Date: Fri, 1 Jun 2007 15:47:36 +0100
On 6/1/07, Andreas Stricker <andreas stricker fela ch> wrote:
Nuno Lucas schrieb:
> How people do with very large list boxes? I was hopping I could have
> some form of just seting up the column headers and say I have 10000
> rows and let the widget ask me for the data when it needs it.
>
> It seems a bit heavy to add 10000 rows one at a time, as it seems I'm
> forced to do even if I "derive" my own ListStore.
You have to derive your own GtkTreeModel, if the predefined GtkListStore
or GtkTreeStore are not sufficient (They simply stores all data at once).
I may be missing something, but I don't see a way to set the number of
"virtual" rows.
From what I see in the documentation, the only way to grow is by
appending a single row at a time (which I guess then emits the
"row-changed" signal and updates the scrollbar).
What seems to be missing is a way to say I already have 10k, 100k or
even 1M rows of data ready (at least I will cache that data myself).
Even if I implement my own GtkTreeModel, I don't see a way of escaping
this limitation. At least on the documentation.
Regards,
~Nuno Lucas
Cheers, Andy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]