rygel r324 - in trunk/src: plugins/tracker rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r324 - in trunk/src: plugins/tracker rygel
- Date: Mon, 1 Dec 2008 16:39:28 +0000 (UTC)
Author: zeeshanak
Date: Mon Dec 1 16:39:27 2008
New Revision: 324
URL: http://svn.gnome.org/viewvc/rygel?rev=324&view=rev
Log:
A small convenience constructor for root container.
Modified:
trunk/src/plugins/tracker/rygel-media-tracker.vala
trunk/src/rygel/rygel-media-container.vala
Modified: trunk/src/plugins/tracker/rygel-media-tracker.vala
==============================================================================
--- trunk/src/plugins/tracker/rygel-media-tracker.vala (original)
+++ trunk/src/plugins/tracker/rygel-media-tracker.vala Mon Dec 1 16:39:27 2008
@@ -45,10 +45,9 @@
// Chain-up to base first
base.constructed ();
- this.root_container = new MediaContainer ("0",
- "-1",
- "MediaTracker",
- this.containers.length ());
+ this.root_container = new MediaContainer.root
+ ("MediaTracker",
+ this.containers.length ());
this.containers = new List<TrackerContainer> ();
this.containers.append
Modified: trunk/src/rygel/rygel-media-container.vala
==============================================================================
--- trunk/src/rygel/rygel-media-container.vala (original)
+++ trunk/src/rygel/rygel-media-container.vala Mon Dec 1 16:39:27 2008
@@ -41,6 +41,11 @@
this.child_count = child_count;
}
+ public MediaContainer.root (string title,
+ uint child_count) {
+ this ("0", "-1", title, child_count);
+ }
+
public override void serialize (DIDLLiteWriter didl_writer) {
didl_writer.start_container (this.id,
this.parent_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]