After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 357565 - Reparentable Tree Store
Reparentable Tree Store
Status: RESOLVED OBSOLETE
Product: gtkmm
Classification: Bindings
Component: general
2.10.x
Other All
: Normal enhancement
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-09-25 07:14 UTC by Paul Davis
Modified: 2013-11-08 15:38 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Example for Reparentabl TreeStore (3.25 KB, application/x-gzip)
2006-09-25 07:34 UTC, Paul Davis
Details

Description Paul Davis 2006-09-25 07:14:50 UTC
Wrote an example to show how to create a TreeStore that is capable of arbitrairily reparenting Gtk::TreeModel::iterator's.
Comment 1 Paul Davis 2006-09-25 07:34:14 UTC
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.
Comment 2 Murray Cumming 2006-10-11 10:16:34 UTC
I have forgotten what this does. Could you write a ChangeLog entry - just write it here in bugzilla, please.
Comment 3 Murray Cumming 2006-11-23 15:39:30 UTC
Paul?
Comment 4 Paul Davis 2006-12-07 03:09:58 UTC
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.
Comment 5 Kjell Ahlstedt 2013-06-08 09:13:39 UTC
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?
Comment 6 Kjell Ahlstedt 2013-11-08 15:38:08 UTC
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.