[gnome-music/freeze-break: 100/107] create a playlist iter before appending to playlist
- From: Arnel A. Borja <arnelborja src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/freeze-break: 100/107] create a playlist iter before appending to playlist
- Date: Wed, 11 Sep 2013 13:22:46 +0000 (UTC)
commit 2c00e668f58caec3f14e0ecb508f4487943c95ba
Author: Sai <suman sai14 gmail com>
Date: Sat Sep 7 11:00:51 2013 +0530
create a playlist iter before appending to playlist
gnomemusic/playlists.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index c1bb356..55ac1cf 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -56,12 +56,14 @@ class Playlists(GObject.GObject):
pl_file = Gio.file_new_for_path(self.get_path_to_playlist(playlist_name))
def parse_callback(parser, uri, metadata, data):
- _iter = playlist.append()
+ _iter = TotemPlParser.PlaylistIter()
+ playlist.append(_iter)
playlist.set_value(_iter, TotemPlParser.PARSER_FIELD_URI, uri)
def end_callback(parser, uri, data):
for uri in uris:
- _iter = playlist.append()
+ _iter = TotemPlParser.PlaylistIter()
+ playlist.append(_iter)
playlist.set_value(_iter, TotemPlParser.PARSER_FIELD_URI, uri)
def get_callback(source, param, item):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]