[gedit] search: use gtk_source_search_context_replace2()



commit dc41eb699946f861d948435c3eb20aa30095b4e8
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jun 4 17:49:41 2016 +0200

    search: use gtk_source_search_context_replace2()
    
    gtk_source_search_context_replace() is deprecated.

 README                        |    2 +-
 configure.ac                  |    2 +-
 gedit/gedit-commands-search.c |   12 ++++++------
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/README b/README
index aad615d..7f8ddd6 100644
--- a/README
+++ b/README
@@ -64,7 +64,7 @@ Information about gedit mailing lists can be found at
 Installation
 ============
 
-gedit requires GTK+ >= 3.20.0, GtkSourceView >= 3.20.0 and
+gedit requires GTK+ >= 3.20.0, GtkSourceView >= 3.21.2 and
 libpeas >= 1.14.1 libraries. It also has a run-time dependency on an
 icon theme for its icons. If gedit fails to display icons, installing
 GNOME's default adwaita-icon-theme is a simple way of providing them.
diff --git a/configure.ac b/configure.ac
index aacac6c..0dbf5f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@ AC_SUBST(GEDIT_API_VERSION)
 # Dependencies
 GLIB_REQUIRED=2.44
 GTK_REQUIRED=3.19.0
-GTKSOURCEVIEW_REQUIRED=3.19.4
+GTKSOURCEVIEW_REQUIRED=3.21.2
 LIBPEAS_REQUIRED=1.14.1
 LIBXML_REQUIRED=2.5.0
 GSPELL_REQUIRED=0.2.5
diff --git a/gedit/gedit-commands-search.c b/gedit/gedit-commands-search.c
index fd29e76..72016ae 100644
--- a/gedit/gedit-commands-search.c
+++ b/gedit/gedit-commands-search.c
@@ -422,12 +422,12 @@ do_replace (GeditReplaceDialog *dialog,
 
        gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (doc), &start, &end);
 
-       gtk_source_search_context_replace (search_context,
-                                          &start,
-                                          &end,
-                                          unescaped_replace_text,
-                                          -1,
-                                          &error);
+       gtk_source_search_context_replace2 (search_context,
+                                           &start,
+                                           &end,
+                                           unescaped_replace_text,
+                                           -1,
+                                           &error);
 
        g_free (unescaped_replace_text);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]