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 743927 - GListStore: add sorted insert function
GListStore: add sorted insert function
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-02-03 12:45 UTC by Allison Karlitskaya (desrt)
Modified: 2015-02-03 14:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GListStore: add sorted insert function (3.35 KB, patch)
2015-02-03 12:45 UTC, Allison Karlitskaya (desrt)
committed Details | Review
tests: add test for GListStore inserted sort (3.14 KB, patch)
2015-02-03 12:45 UTC, Allison Karlitskaya (desrt)
committed Details | Review

Description Allison Karlitskaya (desrt) 2015-02-03 12:45:19 UTC
As requested by Alex.  See patches.
Comment 1 Allison Karlitskaya (desrt) 2015-02-03 12:45:22 UTC
Created attachment 296014 [details] [review]
GListStore: add sorted insert function

Add g_list_store_insert_sorted() which takes a GCompareDataFunc to
decide where to insert.  This ends up being a very trivial function,
thanks to GSequence.
Comment 2 Allison Karlitskaya (desrt) 2015-02-03 12:45:27 UTC
Created attachment 296015 [details] [review]
tests: add test for GListStore inserted sort
Comment 3 Allison Karlitskaya (desrt) 2015-02-03 14:59:24 UTC
Attachment 296014 [details] pushed as 3f3eac4 - GListStore: add sorted insert function
Attachment 296015 [details] pushed as 26af7c1 - tests: add test for GListStore inserted sort