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 654056 - pygobject overrides ListStore.append, but not ListStore.prepend
pygobject overrides ListStore.append, but not ListStore.prepend
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-05 21:29 UTC by Adam Dingle
Modified: 2011-08-13 10:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (920 bytes, patch)
2011-07-05 21:29 UTC, Adam Dingle
needs-work Details | Review
Updated patch with unit test. (2.13 KB, patch)
2011-07-05 23:07 UTC, Adam Dingle
none Details | Review

Description Adam Dingle 2011-07-05 21:29:37 UTC
Created attachment 191365 [details] [review]
patch

pygobject provides a special binding for Gtk.ListStore.append() which allows the caller to append a row to a ListStore and assign values to it in a single step.  There should be a similar binding for the analogous method Gtk.ListStore.prepend().

Here's a patch.
Comment 1 johnp 2011-07-05 21:41:04 UTC
Comment on attachment 191365 [details] [review]
patch

Looks good but it needs a unit test in tests/test_overrides.py
Comment 2 Adam Dingle 2011-07-05 23:07:15 UTC
Created attachment 191371 [details] [review]
Updated patch with unit test.