[Gtk-sharp-list] NodeStore and lazy loading
jeroen.zwartepoorte at gmail.com
Wed Aug 17 18:34:14 EDT 2005
I don't believe this is wrong: from an MVC point of view, the model
shouldn't know/care about which branches are visible or not. Ideally
you'd just add an event handler for the expand/collapse events and
*tell* the model to load the specific branch for real.
This is also how the Swing tree widget works btw (for reference, see:
On 8/17/05, Ben Maurer <bmaurer at ximian.com> wrote:
> > 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?
> One issue with this: the event occurs on the TreeView, not on the store.
> Making the store depend on the events in the view is a bit nasty.
> -- Ben
More information about the Gtk-sharp-list