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 749471 - use gtk_source_buffer_sort_lines
use gtk_source_buffer_sort_lines
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: editor
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-05-16 16:06 UTC by Paolo Borelli
Modified: 2016-05-05 12:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paolo Borelli 2015-05-16 16:06:55 UTC
I added it in 3.17.

The implementation differs a bit from what you have now in builder:

 - it gets the text slice line by line to be robust to different kind of line terminators
 - it uses g_utf8_collate_key to be utf8 safe

it could be a bit slower but it seems ok for reasonable sizes.

Let me know if it fits your needs and if I did not screw up with cursor placing etc
Comment 1 Christian Hergert 2016-05-05 12:16:29 UTC
This was fixed during 3.18 cycle, but forgot to close this out.