[gnome-music] Search for some sources doesn't return remaining



commit e08190724629195c7ceca88709a87b630d829b50
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Apr 8 11:50:22 2014 +0200

    Search for some sources doesn't return remaining
    
    Also fix some artifacts from rebase

 gnomemusic/grilo.py   |    2 +-
 gnomemusic/view.py    |   12 ++++++------
 gnomemusic/widgets.py |    2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 8a91517..270192c 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -180,7 +180,7 @@ class Grilo(GObject.GObject):
     def search(self, q, callback):
         options = self.options.copy()
 
-       @log
+        @log
         def _search_callback(src, param, item, id, offset, data):
             if item is not None:
                 #print("%s: %s by %s" % (item.get_url(), item.get_title(), item.get_author()))
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 0baf813..2edcb03 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -275,7 +275,7 @@ class ViewContainer(Gtk.Stack):
             self._model.set(_iter, [8, 10], [self.errorIconName, True])
 
     @log
-    def _add_item(self, source, param, item, remaining):
+    def _add_item(self, source, param, item, remaining=0):
         if not item:
             return
         self._offset += 1
@@ -408,7 +408,7 @@ class Albums(ViewContainer):
         self.albums_index += 1
 
     @log
-    def _add_selected_item(self, source, param, item, remaining):
+    def _add_selected_item(self, source, param, item, remaining=0):
         if item:
             self.items_selected.append(item.get_url())
         if remaining == 0:
@@ -467,7 +467,7 @@ class Songs(ViewContainer):
         return False
 
     @log
-    def _add_item(self, source, param, item, remaining):
+    def _add_item(self, source, param, item, remaining=0):
         if not item:
             return
         self._offset += 1
@@ -696,7 +696,7 @@ class Artists (ViewContainer):
         GLib.idle_add(self.artistAlbumsStack.set_visible_child, new_artistAlbumsWidget)
 
     @log
-    def _add_item(self, source, param, item, remaining):
+    def _add_item(self, source, param, item, remaining=0):
         if item is None:
             return
         self._offset += 1
@@ -758,7 +758,7 @@ class Artists (ViewContainer):
         self.albums_index += 1
 
     @log
-    def _add_selected_item(self, source, param, item, remaining):
+    def _add_selected_item(self, source, param, item, remaining=0):
         if item:
             self.items_selected.append(item.get_url())
         if remaining == 0:
@@ -1019,7 +1019,7 @@ class Playlist(ViewContainer):
             self._update_songs_count()
 
     @log
-    def _add_item(self, source, param, item):
+    def _add_item(self, source, param, item, remaining=0):
         self._add_item_to_model(item, self._model)
 
     @log
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index fc0b7af..33e4412 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -435,7 +435,7 @@ class AllArtistsAlbums(ArtistAlbums):
                           self._offset, self.add_item, -1)
 
     @log
-    def add_item(self, source, param, item, remaining):
+    def add_item(self, source, param, item, remaining=0):
         if item:
             self._offset += 1
             self.add_album(item)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]