From aac2d44d143727c3586bea21412f43c64746bed8 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sun, 2 May 2010 10:34:41 +0200 Subject: [PATCH 37/39] TST: rename Music category to Audio, which is more accurate --- src/tracker-search-tool/tracker-metadata-tile.gs | 6 +++--- src/tracker-search-tool/tracker-utils.gs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tracker-search-tool/tracker-metadata-tile.gs b/src/tracker-search-tool/tracker-metadata-tile.gs index dc47804..b079f6e 100644 --- a/src/tracker-search-tool/tracker-metadata-tile.gs +++ b/src/tracker-search-tool/tracker-metadata-tile.gs @@ -276,7 +276,7 @@ class TrackerMetadataTile : EventBox if res.contains ("nfo#Video") do return Categories.Video if res.contains ("nfo#Image") do return Categories.Image - if res.contains ("nfo#Audio") do return Categories.Music + if res.contains ("nfo#Audio") do return Categories.Audio if res.contains ("nfo#Document") do return Categories.Document if res.contains ("nfo#Software") do return Categories.Application if res.contains ("nfo#Folder") do return Categories.Folder @@ -333,7 +333,7 @@ class TrackerMetadataTile : EventBox - def private DisplayMusicDetails (uri : string) + def private DisplayAudioDetails (uri : string) var query = "select nie:title(?s) nmm:performer(?s) nmm:musicAlbum(?s) Where { ?s nie:url \"%s\" }".printf(uri) var result = Query.Query (query) @@ -402,7 +402,7 @@ class TrackerMetadataTile : EventBox case cat when Categories.Application do DisplayApplicationDetails (uri) - when Categories.Music do DisplayMusicDetails (uri) + when Categories.Audio do DisplayAudioDetails (uri) when Categories.Video do DisplayVideoDetails (uri) when Categories.Image do DisplayImageDetails (uri) when Categories.Document do DisplayDocumentDetails (uri) diff --git a/src/tracker-search-tool/tracker-utils.gs b/src/tracker-search-tool/tracker-utils.gs index 14ca74a..4df2c28 100644 --- a/src/tracker-search-tool/tracker-utils.gs +++ b/src/tracker-search-tool/tracker-utils.gs @@ -32,7 +32,7 @@ enum Categories EmailAttachment File Folder - Music + Audio Video Image Document -- 1.7.0