[gedit] No longer use gedit_utils_make_valid_utf8()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] No longer use gedit_utils_make_valid_utf8()
- Date: Mon, 11 Nov 2019 03:01:12 +0000 (UTC)
commit 3bfb51e4b3b30ad41f59013f2765cfd33a2f4cc7
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 729d36397..382dd5c07 100644
--- a/gedit/gedit-io-error-info-bar.c
+++ b/gedit/gedit-io-error-info-bar.c
@@ -235,7 +235,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 defb565e7..2a94fb2fe 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -771,7 +771,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]