[tracker] TST: rename Music category to Audio, which is more accurate



commit aee37b9331db40a20ee40c1b6eff1a5e63fe9bd4
Author: Tshepang Lekhonkhobe <tshepang gmail com>
Date:   Sun May 2 10:34:41 2010 +0200

    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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]