GNOME Bugzilla – Bug 604782
Gtk2::ListStore remove() on gtk 2.0.x
Last modified: 2010-01-09 19:14:37 UTC
Created attachment 149881 [details] [review] returning boolean in gtk 2.0 too This is an idea to get a return value from $liststore->remove even when compiled against gtk 2.0.x, per a FIXME in the current sources. I don't suppose anyone would be using 2.0.x, but the later behaviour is quite easily emulated. I don't have an actual 2.0 to run, so this is based on a reading of its sources and a test run on gtk 2.18.
Review of attachment 149881 [details] [review]: For fun, I built a gtk+ 2.0 sandbox and tested the patch. Works fine. Committed, with the corresponding test changes: <http://git.gnome.org/cgit/perl-Gtk2/commit/?id=ad47d5ccb78e>.
Created attachment 150479 [details] [review] same for Gtk2::TreeStore remove()
I missed the tests being conditionalized on the version :). I see the same can be done for remove in Gtk2::TreeStore, which I also forgot to look at. New attachment and reopen for that ...
Review of attachment 150479 [details] [review]: Committed. Thanks!