tracker: Descriptive IDs for containers
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 19 Feb 2010 15:55:18 +0000 (17:55 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 19 Feb 2010 15:55:18 +0000 (17:55 +0200)
src/plugins/tracker/rygel-tracker-music.vala
src/plugins/tracker/rygel-tracker-root-container.vala

index 67797cc..574fb3a 100644 (file)
@@ -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,
index 5ab962f..231544b 100644 (file)
@@ -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"));
         }
     }