[nautilus] placessidebar: Unescape tooltip string for remote bookmarks
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] placessidebar: Unescape tooltip string for remote bookmarks
- Date: Sun, 4 Sep 2022 14:05:13 +0000 (UTC)
commit 6a8f55863cf045e6973ca7a3381792f9e9e33dc4
Author: Antonio <antoniolrt gmail com>
Date: Wed Jun 15 16:04:16 2022 -0300
placessidebar: Unescape tooltip string for remote bookmarks
g_file_get_parse_name() returns a string with escaped special characters
for remote locations. Use g_file_get_uri() for remote bookmarks and
unescape the string before setting the tooltip to make sure it is always
a human-readable string. Use g_file_get_path() for local bookmarks.
Fixes #2016
src/gtk/nautilusgtkplacessidebar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtk/nautilusgtkplacessidebar.c b/src/gtk/nautilusgtkplacessidebar.c
index 06e3c20c6..06b5c4abb 100644
--- a/src/gtk/nautilusgtkplacessidebar.c
+++ b/src/gtk/nautilusgtkplacessidebar.c
@@ -796,7 +796,7 @@ on_bookmark_query_info_complete (GObject *source,
start_icon = g_themed_icon_new_with_default_fallbacks (clos->is_native ? ICON_NAME_FOLDER :
ICON_NAME_FOLDER_NETWORK);
mount_uri = g_file_get_uri (root);
- tooltip = g_file_get_parse_name (root);
+ tooltip = clos->is_native ? g_file_get_path (root) : g_uri_unescape_string (mount_uri, NULL);
add_place (sidebar, NAUTILUS_GTK_PLACES_BOOKMARK,
NAUTILUS_GTK_PLACES_SECTION_BOOKMARKS,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]