[rygel] tracker: Descriptive IDs for containers



commit 33b0fb42d82f6b746a6e38b87cd118beaf2e6b16
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Feb 19 17:55:18 2010 +0200

    tracker: Descriptive IDs for containers

 src/plugins/tracker/rygel-tracker-music.vala       |    4 ++--
 .../tracker/rygel-tracker-root-container.vala      |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-music.vala b/src/plugins/tracker/rygel-tracker-music.vala
index 67797cc..574fb3a 100644
--- a/src/plugins/tracker/rygel-tracker-music.vala
+++ b/src/plugins/tracker/rygel-tracker-music.vala
@@ -35,14 +35,14 @@ public class Rygel.TrackerMusic : Rygel.TrackerCategoryContainer {
         var key_chain = new string[] { "nmm:performer",
                                        "nmm:artistName",
                                        null };
-        this.add_child (new TrackerMetadataValues ("17",
+        this.add_child (new TrackerMetadataValues (id + "Artists",
                                                    this,
                                                    "Artists",
                                                    this.item_factory,
                                                    key_chain));
 
         key_chain = new string[] { "nmm:musicAlbum", "nmm:albumTitle", null };
-        this.add_child (new TrackerMetadataValues ("18",
+        this.add_child (new TrackerMetadataValues (id + "Albums",
                                                    this,
                                                    "Albums",
                                                    this.item_factory,
diff --git a/src/plugins/tracker/rygel-tracker-root-container.vala b/src/plugins/tracker/rygel-tracker-root-container.vala
index 5ab962f..231544b 100644
--- a/src/plugins/tracker/rygel-tracker-root-container.vala
+++ b/src/plugins/tracker/rygel-tracker-root-container.vala
@@ -34,15 +34,15 @@ public class Rygel.TrackerRootContainer : Rygel.SimpleContainer {
         base.root (title);
 
         if (this.get_bool_config_without_error ("share-music")) {
-            this.add_child (new TrackerMusic ("14", this, "Music"));
+            this.add_child (new TrackerMusic ("Music", this, "Music"));
         }
 
         if (this.get_bool_config_without_error ("share-videos")) {
-            this.add_child (new TrackerVideos ("15", this, "Videos"));
+            this.add_child (new TrackerVideos ("Videos", this, "Videos"));
         }
 
         if (this.get_bool_config_without_error ("share-pictures")) {
-            this.add_child (new TrackerPictures ("16", this, "Pictures"));
+            this.add_child (new TrackerPictures ("Pictures", this, "Pictures"));
         }
     }
 



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