[grilo-plugins/0.2.x] tracker: Add IDs to top-level tracker boxes
- From: Juan A. Suárez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/0.2.x] tracker: Add IDs to top-level tracker boxes
- Date: Sat, 19 Dec 2015 23:44:41 +0000 (UTC)
commit 50fe8da24f2882a84475d5b130d133735f247031
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 25 11:51:47 2015 +0100
tracker: Add IDs to top-level tracker boxes
https://bugzilla.gnome.org/show_bug.cgi?id=758654
src/tracker/grl-tracker-source-api.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker/grl-tracker-source-api.c b/src/tracker/grl-tracker-source-api.c
index 959b381..15f9f07 100644
--- a/src/tracker/grl-tracker-source-api.c
+++ b/src/tracker/grl-tracker-source-api.c
@@ -1083,6 +1083,7 @@ grl_tracker_source_browse_category (GrlSource *source,
if (remaining == 4) {
media = grl_media_box_new ();
grl_media_set_title (media, "Documents");
+ grl_media_set_id (media, "documents");
grl_data_set_string (GRL_DATA (media),
grl_metadata_key_tracker_category,
"nfo:Document");
@@ -1093,6 +1094,7 @@ grl_tracker_source_browse_category (GrlSource *source,
if (filter & GRL_TYPE_FILTER_AUDIO) {
media = grl_media_box_new ();
grl_media_set_title (media, "Music");
+ grl_media_set_id (media, "music");
grl_data_set_string (GRL_DATA (media),
grl_metadata_key_tracker_category,
"nmm:MusicPiece");
@@ -1103,6 +1105,7 @@ grl_tracker_source_browse_category (GrlSource *source,
if (filter & GRL_TYPE_FILTER_IMAGE) {
media = grl_media_box_new ();
grl_media_set_title (media, "Photos");
+ grl_media_set_id (media, "photos");
grl_data_set_string (GRL_DATA (media),
grl_metadata_key_tracker_category,
"nmm:Photo");
@@ -1113,6 +1116,7 @@ grl_tracker_source_browse_category (GrlSource *source,
if (filter & GRL_TYPE_FILTER_VIDEO) {
media = grl_media_box_new ();
grl_media_set_title (media, "Videos");
+ grl_media_set_id (media, "videos");
grl_data_set_string (GRL_DATA (media),
grl_metadata_key_tracker_category,
"nmm:Video");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]