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:
parent
15ec9b4e65
commit
aa7dabad39
|
@ -136,7 +136,7 @@ forward_search_finished (GtkSourceSearchContext *search_context,
|
||||||
GtkTextIter match_start;
|
GtkTextIter match_start;
|
||||||
GtkTextIter match_end;
|
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);
|
buffer = gtk_source_search_context_get_buffer (search_context);
|
||||||
|
|
||||||
if (found)
|
if (found)
|
||||||
|
@ -210,7 +210,7 @@ backward_search_finished (GtkSourceSearchContext *search_context,
|
||||||
GtkTextIter match_end;
|
GtkTextIter match_end;
|
||||||
GtkSourceBuffer *buffer;
|
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);
|
buffer = gtk_source_search_context_get_buffer (search_context);
|
||||||
|
|
||||||
if (found)
|
if (found)
|
||||||
|
@ -479,7 +479,7 @@ do_replace (XedSearchbar *searchbar)
|
||||||
gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc), &start, &end);
|
gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc), &start, &end);
|
||||||
searchbar->priv->search_mode = XED_SEARCH_MODE_REPLACE;
|
searchbar->priv->search_mode = XED_SEARCH_MODE_REPLACE;
|
||||||
|
|
||||||
gtk_source_search_context_replace (search_context,
|
gtk_source_search_context_replace2 (search_context,
|
||||||
&start,
|
&start,
|
||||||
&end,
|
&end,
|
||||||
unescaped_replace_text,
|
unescaped_replace_text,
|
||||||
|
|
Loading…
Reference in New Issue