[nautilus] Bug 698252 - Use the activation location for the where string of recent files
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Bug 698252 - Use the activation location for the where string of recent files
- Date: Fri, 21 Jun 2013 12:24:28 +0000 (UTC)
commit f597b7e9016f77fd1fbbf487755139a90381cfbe
Author: Garrett Regier <garrettregier gmail com>
Date: Thu Jun 20 20:25:08 2013 -0700
Bug 698252 - Use the activation location for the where string of recent files
libnautilus-private/nautilus-vfs-file.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-vfs-file.c b/libnautilus-private/nautilus-vfs-file.c
index fa7385b..d907d8d 100644
--- a/libnautilus-private/nautilus-vfs-file.c
+++ b/libnautilus-private/nautilus-vfs-file.c
@@ -311,7 +311,22 @@ vfs_file_get_date (NautilusFile *file,
static char *
vfs_file_get_where_string (NautilusFile *file)
{
- return nautilus_file_get_parent_uri_for_display (file);
+ GFile *activation_location;
+ NautilusFile *location;
+ char *where_string;
+
+ if (!nautilus_file_is_in_recent (file)) {
+ location = nautilus_file_ref (file);
+ } else {
+ activation_location = nautilus_file_get_activation_location (file);
+ location = nautilus_file_get (activation_location);
+ g_object_unref (activation_location);
+ }
+
+ where_string = nautilus_file_get_parent_uri_for_display (location);
+
+ nautilus_file_unref (location);
+ return where_string;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]