[gedit/wip/swilmet/tepl-step3: 11/11] No longer use gedit_utils_make_valid_utf8()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/swilmet/tepl-step3: 11/11] No longer use gedit_utils_make_valid_utf8()
- Date: Fri, 8 Nov 2019 17:09:48 +0000 (UTC)
commit 292efcd8803d45b99bfa231711b42a0df09927a8
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]