[Gtk-sharp-list] NodeStore and lazy loading
Jeroen Zwartepoorte
jeroen.zwartepoorte at gmail.com
Wed Aug 17 03:06:05 EDT 2005
Hey Ben,
For 2, can't you intially add a dummy child node (so the expander
arrow shows up), and then connect to the test-expand-row signal (can't
lookup the name in Gtk#) and then load the children for that node?
That's how i played around with a file tree based on TreeView and the
new GnomeVfs API.
Jeroen
On 8/17/05, Ben Maurer <bmaurer at ximian.com> wrote:
> Hey,
>
> As a little pet project, I decided to try to make a browser for the MSDN
> toc with the NodeStore api. Obviously, this table needs to be lazy loaded,
> as it is downloaded from the internet.
>
> Attached is what I was able to gather up so far. I encountered two issues:
>
> 1. Only the top level of nodes shows up -- they do not appear to have any
> children. However, the ChildCount and this [int] property work correctly
>
> 2. The NodeStore recursively looks at all of its children on the first
> load. I could not figure out a way to implement lazy loading behavior.
>
> Obviously for 1, I am doing something wrong. I'd appreciate some input
> here. For 2, this is an api limitation. Probably too late to fix this late
> in the beta cycle, but it seems like something that would be worth
> thinking about for vnext...
>
> -- Ben
>
>
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>
>
More information about the Gtk-sharp-list
mailing list