From 56bd0058b6c19b7c13574d548f6d6dbdbe81448b Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 29 Jul 2016 20:28:46 +0200 Subject: GTK+-3.20 pluma-document: avoid deprecated gtk_text_iter_begins_tag --- pluma/pluma-document.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pluma/pluma-document.c b/pluma/pluma-document.c index 90189f03..61e31906 100644 --- a/pluma/pluma-document.c +++ b/pluma/pluma-document.c @@ -2432,7 +2432,11 @@ search_region (PlumaDocument *doc, gtk_text_iter_forward_lines (end, doc->priv->num_of_lines_search_text); if (gtk_text_iter_has_tag (start, doc->priv->found_tag) && +#if GTK_CHECK_VERSION (3, 20, 0) + !gtk_text_iter_starts_tag (start, doc->priv->found_tag)) +#else !gtk_text_iter_begins_tag (start, doc->priv->found_tag)) +#endif gtk_text_iter_backward_to_tag_toggle (start, doc->priv->found_tag); if (gtk_text_iter_has_tag (end, doc->priv->found_tag) && -- cgit v1.2.1