On Fri, 03 Jan 2014 22:51:15 GMT, E.S. Quinn wrote:
On Thu, 02 Jan 2014 17:55:00 GMT, Mike Wey wrote:
On Wed, 01 Jan 2014 02:02:36 GMT, E.S. Quinn wrote:
Gotcha! It also occurs to me, re-reading through various GTK and GtkD docs, that it might be better to subclass ListStore, and just override everything so it doesn't touch ListStore's internal storage. Would this sort of thing work?
Currently overriding anything in the Liststore doesn't have any affect
in the C / Gtk+ side of things.Rats! That does make perfect sense, thinking about it now. Fortunately, drag reordering is nice, but not critical for my app, so that can wait :)
I've a copy of the DemoCustomlist demo that supports reordering by dragging and dropping.
You can find it in the Gist here: https://gist.github.com/MikeWey/8223114The original can be found in the demos/gtkD/DemoCustomList directory:
https://github.com/gtkd-developers/GtkD/tree/master/demos/gtkD/DemoCustomListThank you so much!
I just got that stuff implemented in one of my own custom List models, and it works great. Thanks for going through the effort to put this together!