[Xfce4-commits] [xfce/thunar] 02/13: Unescape URI in history error message
noreply at xfce.org
noreply at xfce.org
Tue May 12 09:58:15 CEST 2015
This is an automated email from the git hooks/post-receive script.
hjudt pushed a commit to branch master
in repository xfce/thunar.
commit 9ae55d9e324d43125c1c42df76512fb28260dce3
Author: Harald Judt <h.judt at gmx.at>
Date: Thu May 7 21:06:07 2015 +0200
Unescape URI in history error message
---
thunar/thunar-history.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/thunar/thunar-history.c b/thunar/thunar-history.c
index 29ce2a0..df7d0cf 100644
--- a/thunar/thunar-history.c
+++ b/thunar/thunar-history.c
@@ -347,12 +347,22 @@ thunar_history_error_not_found (GFile *goto_file,
gpointer parent)
{
gchar *parse_name;
+ gchar *path;
GError *error = NULL;
g_set_error_literal (&error, G_FILE_ERROR, G_FILE_ERROR_EXIST,
_("The item will be removed from the history"));
- parse_name = g_file_get_parse_name (goto_file);
+ path = g_file_get_path (goto_file);
+ if (path == NULL)
+ {
+ path = g_file_get_uri (goto_file);
+ parse_name = g_uri_unescape_string (path, NULL);
+ g_free (path);
+ }
+ else
+ parse_name = g_file_get_parse_name (goto_file);
+
thunar_dialogs_show_error (parent, error, _("Could not find \"%s\""), parse_name);
g_free (parse_name);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list