[gedit] Use tepl_utils_decode_uri()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Use tepl_utils_decode_uri()
- Date: Mon, 23 Mar 2020 13:03:30 +0000 (UTC)
commit bf3d5700312772aaf64b62f46ebbbefe8d86f4ab
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Mar 23 13:59:02 2020 +0100
Use tepl_utils_decode_uri()
gedit_utils_decode_uri() is deprecated.
gedit/gedit-io-error-info-bar.c | 2 +-
gedit/gedit-utils.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gedit/gedit-io-error-info-bar.c b/gedit/gedit-io-error-info-bar.c
index 42b979442..f66fc8c52 100644
--- a/gedit/gedit-io-error-info-bar.c
+++ b/gedit/gedit-io-error-info-bar.c
@@ -228,7 +228,7 @@ parse_gio_error (gint code,
uri = g_file_get_uri (location);
}
- if (uri && gedit_utils_decode_uri (uri, NULL, NULL, &hn, NULL, NULL))
+ if (uri && tepl_utils_decode_uri (uri, NULL, NULL, &hn, NULL, NULL))
{
if (hn != NULL)
{
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index c72a8abf3..744b4d86c 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -198,10 +198,10 @@ gedit_utils_location_get_dirname_for_display (GFile *location)
g_object_unref (mount);
/* obtain the "path" part of the uri */
- gedit_utils_decode_uri (uri,
- NULL, NULL,
- NULL, NULL,
- &path);
+ tepl_utils_decode_uri (uri,
+ NULL, NULL,
+ NULL, NULL,
+ &path);
if (path == NULL)
{
@@ -402,7 +402,7 @@ gedit_utils_basename_for_display (GFile *location)
}
}
else if (g_file_has_parent (location, NULL) ||
- !gedit_utils_decode_uri (uri, NULL, NULL, &hn, NULL, NULL))
+ !tepl_utils_decode_uri (uri, NULL, NULL, &hn, NULL, NULL))
{
/* For remote files with a parent (so not just http://foo.com)
or remote file for which the decoding of the host name fails,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]