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 111489 - gtk.TreeSelcection doesn't wrap get_selected_rows
gtk.TreeSelcection doesn't wrap get_selected_rows
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: general
1.99.x/2.0.x
Other All
: Normal normal
: pygtk-2.2
Assigned To: Python bindings maintainers
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2003-04-24 11:37 UTC by martin H.
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2



Description martin H. 2003-04-24 11:37:49 UTC
The Function gtk_tree_selection_get_selected_rows returns a GLIST.

I don't know enough about Python's C-API to make a patch for this (And the
PC i'm working at doesn't have a decent C development environment (I'm
using windows).

I hope this isn't too much work to fix.

(For others having the same problem:
In the meantime I'm using:
 selected = []
 selection_object.selected_foreach(lambda model, path, iter, sel =
selected: sel.append(path))
But this isn't easy to read)
Comment 1 Johan (not receiving bugmail) Dahlin 2003-06-07 15:20:54 UTC
This is only availible in Gtk+ 2.2.x, and therefor cannot go in before
pygtk 2.2.x (pygtk 2.0.x targets gtk 2.0.x)
Comment 2 James Henstridge 2003-12-23 15:21:29 UTC
Checked in an implementation to HEAD.  Seems to work okay during my
testing.
Comment 3 martin H. 2003-12-23 21:08:06 UTC
Thanks for fixing it.

note: I can't try it at the moment (no longer working on the project
using pygtk).