[totem] grilo: Add Recent files to browse
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Add Recent files to browse
- Date: Wed, 10 Apr 2013 12:10:48 +0000 (UTC)
commit c4684437a4e5076847c7ba54bf49756571c2219a
Author: Bastien Nocera <hadess hadess net>
Date: Wed Apr 3 20:55:42 2013 +0200
grilo: Add Recent files to browse
https://bugzilla.gnome.org/show_bug.cgi?id=697237
src/plugins/grilo/totem-grilo.c | 8 +++++---
src/plugins/grilo/totem-grilo.conf | 3 +++
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index bf90efe..5d6ed4d 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -79,8 +79,7 @@
#define TOTEM_GRILO_CONFIG_FILE "totem-grilo.conf"
-const gchar *BLACKLIST_SOURCES[] = { "grl-filesystem",
- "grl-bookmarks",
+const gchar *BLACKLIST_SOURCES[] = { "grl-bookmarks",
"grl-shoutcast",
"grl-flickr",
NULL };
@@ -817,7 +816,10 @@ source_added_cb (GrlRegistry *registry,
}
self = TOTEM_GRILO_PLUGIN (user_data);
- name = grl_source_get_name (source);
+ if (g_str_equal (grl_source_get_id (source), "grl-filesystem"))
+ name = g_strdup (_("Recent"));
+ else
+ name = grl_source_get_name (source);
ops = grl_source_supported_operations (source);
if (ops & GRL_OP_BROWSE) {
GdkPixbuf *icon;
diff --git a/src/plugins/grilo/totem-grilo.conf b/src/plugins/grilo/totem-grilo.conf
index 2c8530e..a5f3a3c 100644
--- a/src/plugins/grilo/totem-grilo.conf
+++ b/src/plugins/grilo/totem-grilo.conf
@@ -5,3 +5,6 @@ api-secret = bef979d87f28ec47
[grl-youtube]
api-key =
AI39si7Ix-bf9xRLx5PK1sjsG2FQjSHblunuaI8YvHdYbkV2BcgOemHE6Nzb9t6LaMsekofKGSwgAETzbo7OvL8L3vH4vrFaqw
format = best
+
+[grl-filesystem]
+base-uri = recent:///
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]