[rygel] core: update child count if container is updated
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: update child count if container is updated
- Date: Thu, 25 Jun 2009 15:48:05 +0000 (UTC)
commit a76389da8412f1c4579b86d8a0e07a73616db06e
Author: Jens Georg <mail jensge org>
Date: Thu Jun 25 00:52:40 2009 +0200
core: update child count if container is updated
.../rygel-database-backed-media-container.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-database-backed-media-container.vala b/src/rygel/rygel-database-backed-media-container.vala
index 44b83ed..ab52868 100644
--- a/src/rygel/rygel-database-backed-media-container.vala
+++ b/src/rygel/rygel-database-backed-media-container.vala
@@ -34,6 +34,12 @@ public class Rygel.DatabaseBackedMediaContainer : Rygel.MediaContainer {
base (id, null, title, count);
this.media_db = media_db;
+ this.container_updated.connect (on_db_container_updated);
+ }
+
+ private void on_db_container_updated (MediaContainer container,
+ MediaContainer container_updated) {
+ this.child_count = media_db.get_child_count (this.id);
}
public override void get_children (uint offset,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]