[gnome-music/wip/jfelder/albumwidget-cleanup] albumwidget: Remove redundant idle_add
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/albumwidget-cleanup] albumwidget: Remove redundant idle_add
- Date: Wed, 12 Sep 2018 11:55:43 +0000 (UTC)
commit e9c9a342bb7ad2264bf9293de8d0ef2e56ab49ad
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 49c68861..52a40547 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
@@ -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]