[gnome-commander] GnomeCmdFile: unescape parent's path in gnome_cmd_file_new (GnomeVFSFileInfo *, GnomeCmdDir *)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdFile: unescape parent's path in gnome_cmd_file_new (GnomeVFSFileInfo *, GnomeCmdDir *)
- Date: Sat, 9 Apr 2011 23:10:23 +0000 (UTC)
commit 7a9d2c1c34b0c5c3ad9c8322749adad42a3b9516
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Apr 10 01:04:51 2011 +0200
GnomeCmdFile: unescape parent's path in gnome_cmd_file_new (GnomeVFSFileInfo *, GnomeCmdDir *)
src/gnome-cmd-file.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 6b3053f..0512d51 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -160,9 +160,11 @@ GnomeCmdFile *gnome_cmd_file_new_from_uri (GnomeVFSURI *uri)
}
GnomeVFSURI *parent = gnome_vfs_uri_get_parent (uri);
- GnomeCmdPlainPath path(gnome_vfs_uri_get_path (parent));
+ gchar *parent_path = gnome_vfs_unescape_string (gnome_vfs_uri_get_path(parent), "");
+ GnomeCmdPlainPath path(parent_path);
GnomeCmdDir *dir = gnome_cmd_dir_new (get_home_con(), &path);
+ g_free (parent_path);
gnome_vfs_uri_unref (parent);
return gnome_cmd_file_new (info, dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]