Use GtkSourceView search support

Bug #1319798 reported by Robert Roth
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Wishlist
Robert Roth

Bug Description

While working on replace all functionality, I have observed, that Scratch currently uses custom search and replace code.

Since 3.10, GtkSourceView has built-in support for search, replace, match count, replace all, and other goodies (regexp search, case sensitive/insensitive search) [1]. The current custom code could be migrated to be handled by GtkSourceView, resulting in less code duplication.
As Scratch already depends on Gtk+3.10, bumping the SourceView dependency to 3.10 shouldn't be a problem, as they should be available together on most systems.

[1] https://developer.gnome.org/gtksourceview/stable/GtkSourceSearchContext.html

Tags: bounty

Related branches

Robert Roth (evfool)
Changed in scratch:
assignee: nobody → Robert Roth (evfool)
status: New → In Progress
RabbitBot (rabbitbot-a)
Changed in scratch:
status: In Progress → Fix Committed
Cody Garver (codygarver)
Changed in scratch:
milestone: none → isis-beta1
importance: Undecided → Wishlist
tags: added: bounty
Changed in scratch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.