[gnome-music] grilo: Add a populate method for playlists
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] grilo: Add a populate method for playlists
- Date: Thu, 5 Jun 2014 09:07:53 +0000 (UTC)
commit 82fca053ad6bc34cc5d27886fb3ca31b011caa78
Author: Arnel Borja <arnelborja src gnome org>
Date: Thu May 29 20:13:57 2014 +0800
grilo: Add a populate method for playlists
gnomemusic/grilo.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 260974f..0970ea1 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -179,6 +179,10 @@ class Grilo(GObject.GObject):
self.populate_items(Query.all_songs(), offset, callback, count)
@log
+ def populate_playlists(self, offset, callback, count=-1):
+ self.populate_items(Query.all_playlists(), offset, callback, count)
+
+ @log
def populate_album_songs(self, album, callback, count=-1):
if album.get_source() == 'grl-tracker-source':
self.populate_items(Query.album_songs(album.get_id()), 0, callback, count)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]