GNOME Bugzilla – Bug 466853
Gtk::Box_Helpers::BoxList::insert() has wrong return value.
Last modified: 2009-05-05 10:56:57 UTC
It returns iterator to the end, instead of a iterator to the element just inserted. Gtk::Box_Helpers::BoxList is supposed to act like a std container, right?
I guess so. Could you provide a patch and a test case?
Hi, could you do that, please?
Created attachment 133289 [details] [review] Fix the return value of insert() This (rather trivial) patch fixes the return type.
Created attachment 133290 [details] Test-case for the bug This is a test-case for the bug. (g++ -o box-test box_test.cc `pkg-config --libs --cflags gtkmm-2.4`) Without the patch this results in a segmentation fault, with the patch it correctly insert the widget and returns it.
Yeah, please commit, and add that test case please.
http://git.gnome.org/cgit/gtkmm/commit/?id=a905887c456506e82d11257425d918e041617d11