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



commit 3f79766263fef2b1cb533f6d469c4492fce274a5
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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets/albumwidget.py b/gnomemusic/widgets/albumwidget.py
index f714cdeb..f634a640 100644
--- a/gnomemusic/widgets/albumwidget.py
+++ b/gnomemusic/widgets/albumwidget.py
@@ -23,7 +23,7 @@
 # delete this exception statement from your version.
 
 from gettext import ngettext
-from gi.repository import GdkPixbuf, GLib, GObject, Gtk
+from gi.repository import GdkPixbuf, GObject, Gtk
 
 from gnomemusic import log
 from gnomemusic.albumartcache import Art, ArtImage
@@ -146,7 +146,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, album):


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