Search: replace a few functions that were deprecated in Gtk 3.22 (#297)

gtk_source_search_context_forward_finish,
gtk_source_search_context_backward_finish, and
gtk_source_search_context_replace
were replaced with
gtk_source_search_context_forward_finish2,
gtk_source_search_context_backward_finish2, and
gtk_source_search_context_replace2
respectively.
This commit is contained in:
Stephen Collins 2019-05-08 03:34:06 -06:00 committed by JosephMcc
parent 15ec9b4e65
commit aa7dabad39
1 changed files with 8 additions and 8 deletions

View File

@ -136,7 +136,7 @@ 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);
if (found)
@ -210,7 +210,7 @@ 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);
if (found)
@ -479,7 +479,7 @@ do_replace (XedSearchbar *searchbar)
gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc), &start, &end);
searchbar->priv->search_mode = XED_SEARCH_MODE_REPLACE;
gtk_source_search_context_replace (search_context,
gtk_source_search_context_replace2 (search_context,
&start,
&end,
unescaped_replace_text,