[gnome-music] grilo: Add method for populating playlist songs
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] grilo: Add method for populating playlist songs
- Date: Thu, 5 Jun 2014 09:08:08 +0000 (UTC)
commit d45468eb84f5702559c0d5c980d79f79a925e09a
Author: Arnel Borja <arnelborja src gnome org>
Date: Thu May 29 20:45:58 2014 +0800
grilo: Add method for populating playlist songs
gnomemusic/grilo.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 0970ea1..6761d7f 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -194,6 +194,10 @@ class Grilo(GObject.GObject):
callback(source, None, None, 0, None)
@log
+ def populate_playlist_songs(self, playlist, callback, count=-1):
+ self.populate_items(Query.playlist_songs(playlist.get_id()), 0, callback, count)
+
+ @log
def populate_custom_query(self, query, callback, count=-1, data=None):
self.populate_items(query, 0, callback, count, data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]