[rygel] media-export: Allow removal of children
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Allow removal of children
- Date: Mon, 10 Jun 2013 22:13:32 +0000 (UTC)
commit 206e7491026f2157c050b71bbc80c29ca9d6099c
Author: Jens Georg <jensg openismus com>
Date: Mon Jun 10 22:29:36 2013 +0200
media-export: Allow removal of children
There's no "RemoveReference", so PlaylistContainer needs to allow and
support DestroyObject
.../rygel-media-export-playlist-container.vala | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-playlist-container.vala
b/src/plugins/media-export/rygel-media-export-playlist-container.vala
index 9c89b44..d243ec1 100644
--- a/src/plugins/media-export/rygel-media-export-playlist-container.vala
+++ b/src/plugins/media-export/rygel-media-export-playlist-container.vala
@@ -85,9 +85,8 @@ internal class Rygel.MediaExport.PlaylistContainer : DBContainer,
public async void remove_item (string id,
Cancellable? cancellable)
throws Error {
- throw new WritableContainerError.NOT_IMPLEMENTED
- (_("Can't remove items in %s"),
- this.id);
+ this.media_db.remove_by_id (id);
+ this.updated ();
}
public async void add_container (Rygel.MediaContainer container,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]