From: <bug...@bu...> - 2004-12-11 06:56:15
|
http://bugzilla.gnome.org/show_bug.cgi?id=161012 gnome-perl | Gtk2 | Ver: unspecified Summary: Feature Request: Gtk2::TreeIters should be able to store data Product: gnome-perl Version: unspecified Platform: Other OS/Version: All Status: UNCONFIRMED Severity: enhancement Priority: Low Component: Gtk2 AssignedTo: gtk...@li... ReportedBy: zb...@fo... It would be very nice if, instead of the binding treating a GtkTreeIter as a reference to a 4-element array, it could somehow attach a reference to an arbitrary Perl object. This would make it easier for custom TreeModel implementers whose data is not already stored in Perl (and perhaps even for those whose data is already in Perl). For example, if you want to write a TreeModel to display data out of a SQL database, it can become difficult to uniquely refer to a particular row in the DB, especially if your data is stored over multiple tables. This feature would also have other potential benefits. For instance, suppose I want to display a tree stored in a single SQL table, with fields for ID, Next, and Parent. If you can store the next and parent values directly in the TreeIter, you can sometimes save a DB lookup. I believe this feature would also lead to less need to duplicate data, but I currently have no example for that case. ------- You are receiving this mail because: ------- You are the assignee for the bug. |