[gnome-music/wip/jfelder/albumwidget-cleanup] albumwidget: Remove redundant idle_add



commit 6468b19f9481d43acfadeafd83745a5b40d44e77
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Sep 11 11:24:26 2018 +0200

    albumwidget: Remove redundant idle_add
    
    The grilo call is really async, there is no need to schedule it.

 gnomemusic/widgets/albumwidget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/widgets/albumwidget.py b/gnomemusic/widgets/albumwidget.py
index 49c68861..90ef0083 100644
--- a/gnomemusic/widgets/albumwidget.py
+++ b/gnomemusic/widgets/albumwidget.py
@@ -147,7 +147,7 @@ class AlbumWidget(Gtk.EventBox):
 
         self._player.connect('song-changed', self._update_model)
 
-        GLib.idle_add(grilo.populate_album_songs, album, self.add_item)
+        grilo.populate_album_songs(album, self.add_item)
 
     @log
     def _set_composer_label(self, item):


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