[rygel] core: Add SimpleContainer.clear()



commit d069f286e9da72225a68d8fb51a0a8279ea936d4
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Dec 23 15:49:37 2009 +0200

    core: Add SimpleContainer.clear()
    
    API for clearing the SimpleContainer.

 src/rygel/rygel-simple-container.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-simple-container.vala b/src/rygel/rygel-simple-container.vala
index 2f24f68..d6806da 100644
--- a/src/rygel/rygel-simple-container.vala
+++ b/src/rygel/rygel-simple-container.vala
@@ -56,6 +56,12 @@ public class Rygel.SimpleContainer : Rygel.MediaContainer {
         this.child_count--;
     }
 
+    public void clear () {
+        this.children.clear ();
+
+        this.child_count = 0;
+    }
+
     public override async Gee.List<MediaObject>? get_children (
                                         uint         offset,
                                         uint         max_count,



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