From 6f391de2b4a1c7a17c52a6fab2f6b8b65a4882f8 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Thu, 4 Jun 2009 17:14:13 +0300 Subject: [PATCH] media-export: Rename 'items' to 'children' Rename 'items' field of MediaExportRootContainer to 'children'. --- .../media-export/rygel-media-export-root-container.vala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala index 9a86a3b..ce7c6ea 100644 --- a/src/plugins/media-export/rygel-media-export-root-container.vala +++ b/src/plugins/media-export/rygel-media-export-root-container.vala @@ -28,7 +28,7 @@ using GConf; * as items */ public class Rygel.MediaExportRootContainer : MediaContainer { - private ArrayList items; + private ArrayList children; public override void get_children (uint offset, uint max_count, @@ -37,7 +37,7 @@ public class Rygel.MediaExportRootContainer : MediaContainer { { uint stop = offset + max_count; stop = stop.clamp (0, this.child_count); - var children = this.items.slice ((int) offset, (int) stop); + var children = this.children.slice ((int) offset, (int) stop); var res = new Rygel.SimpleAsyncResult> (this, callback); res.data = children; @@ -66,7 +66,7 @@ public class Rygel.MediaExportRootContainer : MediaContainer { MediaObject item = null; var id = ((Rygel.SimpleAsyncResult) res).data; - foreach (var tmp in this.items) { + foreach (var tmp in this.children) { if (id == tmp.id) { item = tmp; break; @@ -74,7 +74,7 @@ public class Rygel.MediaExportRootContainer : MediaContainer { } if (item == null) { - foreach (var tmp in items) { + foreach (var tmp in this.children) { if (tmp is MediaExportContainer) { var folder = (MediaExportContainer) tmp; item = folder.find_object_sync (id); @@ -94,7 +94,7 @@ public class Rygel.MediaExportRootContainer : MediaContainer { public MediaExportRootContainer () { base.root ("MediaExportRoot", 0); - this.items = new ArrayList (); + this.children = new ArrayList (); var config = Rygel.Configuration.get_default (); var dirs = config.get_string_list ("MediaExport", "folders"); @@ -117,10 +117,10 @@ public class Rygel.MediaExportRootContainer : MediaContainer { foreach (var dir in dirs) { var f = File.new_for_commandline_arg (dir); if (f.query_exists (null)) { - items.add (new MediaExportContainer (this, f)); + this.children.add (new MediaExportContainer (this, f)); } } - this.child_count = items.size; + this.child_count = this.children.size; } } -- 2.7.4