Commit d3391e58 authored by Sébastien Wilmet's avatar Sébastien Wilmet

search: use forward_finish2() and backward_finish2()

gtk_source_search_context_forward_finish() and
gtk_source_search_context_backward_finish() are deprecated.
parent a1ab7c5d
......@@ -174,11 +174,12 @@ forward_search_finished (GtkSourceSearchContext *search_context,
GtkTextIter match_start;
GtkTextIter match_end;
found = gtk_source_search_context_forward_finish (search_context,
result,
&match_start,
&match_end,
NULL);
found = gtk_source_search_context_forward_finish2 (search_context,
result,
&match_start,
&match_end,
NULL,
NULL);
buffer = gtk_source_search_context_get_buffer (search_context);
......@@ -279,11 +280,12 @@ backward_search_finished (GtkSourceSearchContext *search_context,
GtkTextIter match_end;
GtkSourceBuffer *buffer;
found = gtk_source_search_context_backward_finish (search_context,
result,
&match_start,
&match_end,
NULL);
found = gtk_source_search_context_backward_finish2 (search_context,
result,
&match_start,
&match_end,
NULL,
NULL);
buffer = gtk_source_search_context_get_buffer (search_context);
......
......@@ -323,11 +323,12 @@ start_search_finished (GtkSourceSearchContext *search_context,
gboolean found;
GtkSourceBuffer *buffer;
found = gtk_source_search_context_forward_finish (search_context,
result,
&match_start,
&match_end,
NULL);
found = gtk_source_search_context_forward_finish2 (search_context,
result,
&match_start,
&match_end,
NULL,
NULL);
buffer = gtk_source_search_context_get_buffer (search_context);
......@@ -386,11 +387,12 @@ forward_search_finished (GtkSourceSearchContext *search_context,
GtkTextIter match_end;
gboolean found;
found = gtk_source_search_context_forward_finish (search_context,
result,
&match_start,
&match_end,
NULL);
found = gtk_source_search_context_forward_finish2 (search_context,
result,
&match_start,
&match_end,
NULL,
NULL);
if (found)
{
......@@ -443,11 +445,12 @@ backward_search_finished (GtkSourceSearchContext *search_context,
gboolean found;
GtkSourceBuffer *buffer;
found = gtk_source_search_context_backward_finish (search_context,
result,
&match_start,
&match_end,
NULL);
found = gtk_source_search_context_backward_finish2 (search_context,
result,
&match_start,
&match_end,
NULL,
NULL);
buffer = gtk_source_search_context_get_buffer (search_context);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment