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 76250 - GtkTreeSelection: iterator interface
GtkTreeSelection: iterator interface
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.0.x
Other other
: Normal enhancement
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on: 83729
Blocks:
 
 
Reported: 2002-03-25 14:05 UTC by Sebastian Rittau
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Sebastian Rittau 2002-03-25 14:05:30 UTC
It seems that currently the only way to iterate over all selected item in a
GtkTreeView is using the gtk_tree_selection_selected_foreach () method. A
simple iterator based interface would allow cleaner solution than passing
around structures as user data in many cases. (E.g. something like
gtk_tree_selection_get_iter(), gtk_tree_selection_get_next() etc.)
Comment 1 Jonathan Blandford 2002-03-26 20:36:17 UTC
Yeah -- this may be a better way of doing it.  jlbec has proposed
something like this many times in the past 
Comment 2 Kristian Rietveld 2002-05-02 19:40:48 UTC
Reassigning bugs to new component owner. Sorry for the flood.
Comment 3 Owen Taylor 2002-08-02 21:19:10 UTC
Moving to 2.2 API freeze since it's an API bug (2.4 API freeze
is more realistic, most likely.)
Comment 4 Sebastian Rittau 2002-10-04 14:33:04 UTC
There is now a function called gtk_tree_selection_get_selected_rows().
This is basically what I needed. Closing this bug.