diff options
author | Antonio <antoniolrt@gmail.com> | 2022-06-15 16:04:16 -0300 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-09-04 14:05:05 +0000 |
commit | 6a8f55863cf045e6973ca7a3381792f9e9e33dc4 (patch) | |
tree | e44de9effd71d5fd1bf3cfc93ccd816b3b5201d1 /src/gtk | |
parent | 1232c5cfcd0147f59feeca62159e598331152807 (diff) | |
download | nautilus-6a8f55863cf045e6973ca7a3381792f9e9e33dc4.tar.gz |
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
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/nautilusgtkplacessidebar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |