[nautilus] Store the activation uri in recently used, if available
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Store the activation uri in recently used, if available
- Date: Sat, 14 Jul 2012 11:00:17 +0000 (UTC)
commit 7b280cb71277fa3f9520be2a71ef7945cb849046
Author: William Jon McCann <jmccann redhat com>
Date: Fri Jul 13 19:50:25 2012 -0400
Store the activation uri in recently used, if available
It is better to store the "actual" / target location
rather than a link.
https://bugzilla.gnome.org/show_bug.cgi?id=325824
libnautilus-private/nautilus-recent.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-recent.c b/libnautilus-private/nautilus-recent.c
index 2488b1b..adb567e 100644
--- a/libnautilus-private/nautilus-recent.c
+++ b/libnautilus-private/nautilus-recent.c
@@ -44,7 +44,10 @@ nautilus_recent_add_file (NautilusFile *file,
GtkRecentData recent_data;
char *uri;
- uri = nautilus_file_get_uri (file);
+ uri = nautilus_file_get_activation_uri (file);
+ if (uri == NULL) {
+ uri = nautilus_file_get_uri (file);
+ }
/* do not add trash:// etc */
if (eel_uri_is_trash (uri) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]