GNOME Bugzilla – Bug 357565
Reparentable Tree Store
Last modified: 2013-11-08 15:38:08 UTC
Wrote an example to show how to create a TreeStore that is capable of arbitrairily reparenting Gtk::TreeModel::iterator's.
Created attachment 73347 [details] Example for Reparentabl TreeStore Kind of weird. Was told to do a patch for new files with cvs to co a clean copy, copy the tree over, add my changes to one or the other and do: diff -Nrup --exclude=CVS gtkmm my_gtkmm > patch.txt So, I dunno if that screws up applying it or what not. Patch was done below the gtkmm main directory. The tar archive was made in the root gtkmm directory, so untarring it in the gtkmm directory should place the example where it needs, and the patch in the current directory. Kind over complicating things now that I think about it.
I have forgotten what this does. Could you write a ChangeLog entry - just write it here in bugzilla, please.
Paul?
2006-12-06 Paul Davis <pjdavis@engineering.uiowa.edu> * examples/reparentabletreestore/CustomTreeStore.cc * examples/reparentabletreestore/CustomTreeStore.hh * examples/reparentabletreestore/ExampleWindow.cc * examples/reparentabletreestore/ExampleWindow.hh * examples/reparentabletreestore/main.cc * examples/reparentabletreestore/Makefile.am: Created an example derived Gtk::TreeStore object that shows how to reparent rows.
I started looking at this example, because I thought that perhaps it should be added to gtkmm-dokumentation/examples/book/treeview. Now when I've tested it and compared it with the other TreeView examples, I suspect that it has become obsolete. In this example you can move around rows in the model. You can do the same thing in the treeview/tree and treeview/drag_and_drop examples. In this reparentabletreestore example it's done differently. It fiddles with iterators, and you use the right mouse button to show where to drop the moved row. I'm tempted to close this bug as OBSOLETE (possibly WONTFIX). Any objection? Does this example show any interesting technique, which is not shown by any of the existing examples? I don't know which examples existed when this bug was filed. Perhaps it was more interesting then, than it is now. Any chance of getting a reply after almost 7 years?
No reply. Closing as obsolete. Feel free to reopen this bug, if you think the attached example program should be added to gtkmm or gtkmm-documentation.