[latexila] Search: use the new GtkSourceSearchContext API
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Search: use the new GtkSourceSearchContext API
- Date: Fri, 21 Oct 2016 18:24:59 +0000 (UTC)
commit d2af9d39c2450ce6caa1fdde1e52a65feb53a33d
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Oct 21 20:21:25 2016 +0200
Search: use the new GtkSourceSearchContext API
configure.ac | 2 +-
src/search.vala | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 51961b5..525b1b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,7 +27,7 @@ LT_INIT
# Update also the --target-glib option in src/Makefile.am.
GLIB_REQUIRED_VERSION="2.40"
GTK_REQUIRED_VERSION="3.20"
-GTKSOURCEVIEW_REQUIRED_VERSION="3.18"
+GTKSOURCEVIEW_REQUIRED_VERSION="3.22"
GSPELL_REQUIRED_VERSION="1.0"
VALA_REQUIRED_VERSION="0.26"
GEE_REQUIRED_VERSION="0.10"
diff --git a/src/search.vala b/src/search.vala
index afd2c93..af1e2a6 100644
--- a/src/search.vala
+++ b/src/search.vala
@@ -235,7 +235,7 @@ public class SearchAndReplace : GLib.Object
Document doc = _search_context.get_buffer () as Document;
doc.get_selection_bounds (out iter, null);
- if (_search_context.backward (iter, out match_start, out match_end))
+ if (_search_context.backward2 (iter, out match_start, out match_end, null))
{
doc.select_range (match_start, match_end);
doc.tab.view.scroll_to_cursor ();
@@ -505,7 +505,7 @@ public class SearchAndReplace : GLib.Object
Document doc = _search_context.get_buffer () as Document;
doc.get_selection_bounds (null, out iter);
- if (_search_context.forward (iter, out match_start, out match_end))
+ if (_search_context.forward2 (iter, out match_start, out match_end, null))
{
doc.select_range (match_start, match_end);
doc.tab.view.scroll_to_cursor ();
@@ -526,7 +526,7 @@ public class SearchAndReplace : GLib.Object
try
{
- if (! _search_context.replace (match_start, match_end,
+ if (! _search_context.replace2 (match_start, match_end,
_entry_replace.text, -1))
search_forward ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]