[gedit/zbrown/deteplification-src: 5/633] No longer use gedit_utils_make_valid_utf8()




commit 24e98e8a4f45f42ba1f218d697fd1bde1e0d51f8
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Nov 6 10:36:35 2019 +0100

    No longer use gedit_utils_make_valid_utf8()
    
    It's deprecated.

 gedit/gedit-io-error-info-bar.c | 2 +-
 gedit/gedit-utils.c             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-io-error-info-bar.c b/gedit/gedit-io-error-info-bar.c
index d8d024f90..e11d77454 100644
--- a/gedit/gedit-io-error-info-bar.c
+++ b/gedit/gedit-io-error-info-bar.c
@@ -234,7 +234,7 @@ parse_gio_error (gint          code,
                                                gchar *host_markup;
                                                gchar *host_name;
 
-                                               host_name = gedit_utils_make_valid_utf8 (hn);
+                                               host_name = g_utf8_make_valid (hn, -1);
                                                g_free (hn);
 
                                                host_markup = g_markup_escape_text (host_name, -1);
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index 439a327d2..847463541 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -815,7 +815,7 @@ gedit_utils_basename_for_display (GFile *location)
 
                if  (hn != NULL)
                {
-                       hn_utf8 = gedit_utils_make_valid_utf8 (hn);
+                       hn_utf8 = g_utf8_make_valid (hn, -1);
                }
                else
                {


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