[gnome-music/wip/process-media-art: 1/2] albumArtCache: Run lookup callbacks in main thread
- From: Arnel A. Borja <arnelborja src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/process-media-art: 1/2] albumArtCache: Run lookup callbacks in main thread
- Date: Wed, 16 Apr 2014 16:24:59 +0000 (UTC)
commit 0601d12e7b9653e790d20ed468c63147eff89808
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Thu Apr 17 00:06:06 2014 +0800
albumArtCache: Run lookup callbacks in main thread
gnomemusic/albumArtCache.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index 40c738b..e88db3a 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -167,7 +167,7 @@ class AlbumArtCache:
@log
def finish(self, pixbuf, path, callback, itr):
try:
- callback(pixbuf, path, itr)
+ GLib.idle_add(callback, pixbuf, path, itr)
except Exception as e:
logger.warn("Error: %s" % e)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]