summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-07-13 19:55:58 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2012-07-14 06:59:35 -0400
commitce64cbc6bfffd275ef98aee730d85879ce4a4a3e (patch)
tree530182bdab201d39140f715aec3858ca8788d260 /eel
parent7b280cb71277fa3f9520be2a71ef7945cb849046 (diff)
downloadnautilus-ce64cbc6bfffd275ef98aee730d85879ce4a4a3e.tar.gz
Add a Recent files place
https://bugzilla.gnome.org/show_bug.cgi?id=325824
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-vfs-extensions.c6
-rw-r--r--eel/eel-vfs-extensions.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/eel/eel-vfs-extensions.c b/eel/eel-vfs-extensions.c
index aac2708a3..75322533c 100644
--- a/eel/eel-vfs-extensions.c
+++ b/eel/eel-vfs-extensions.c
@@ -47,6 +47,12 @@ eel_uri_is_trash (const char *uri)
}
gboolean
+eel_uri_is_recent (const char *uri)
+{
+ return g_str_has_prefix (uri, "recent:");
+}
+
+gboolean
eel_uri_is_search (const char *uri)
{
return g_str_has_prefix (uri, EEL_SEARCH_URI);
diff --git a/eel/eel-vfs-extensions.h b/eel/eel-vfs-extensions.h
index 6338fba1e..90364de25 100644
--- a/eel/eel-vfs-extensions.h
+++ b/eel/eel-vfs-extensions.h
@@ -42,6 +42,7 @@ gboolean eel_uri_is_trash_folder (const char *
gboolean eel_uri_is_in_trash (const char *uri);
gboolean eel_uri_is_desktop (const char *uri);
gboolean eel_uri_is_search (const char *uri);
+gboolean eel_uri_is_recent (const char *uri);
char * eel_make_valid_utf8 (const char *name);