[gnome-music/gnome-3-10] notification: remove code duplication: album_art_loader already avoided passing a pixbuf stream if a
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gnome-3-10] notification: remove code duplication: album_art_loader already avoided passing a pixbuf stream if a
- Date: Mon, 30 Sep 2013 09:10:24 +0000 (UTC)
commit 1431d98ff4be8f33d577e64eb436eef1b29f1675
Author: Dominique Leuenberger <dimstar opensuse org>
Date: Sat Sep 28 17:12:17 2013 +0200
notification: remove code duplication: album_art_loader already avoided passing a pixbuf stream if a path
was knwon
https://bugzilla.gnome.org/show_bug.cgi?id=709033
gnomemusic/notification.py | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gnomemusic/notification.py b/gnomemusic/notification.py
index 7af5e8a..2c8485e 100644
--- a/gnomemusic/notification.py
+++ b/gnomemusic/notification.py
@@ -84,13 +84,6 @@ class NotificationManager:
'<i>' + album + '</i>'),
'gnome-music')
- # Try to pass an image path instead of a serialized pixbuf if possible
- if item.get_thumbnail():
- self._notification.set_hint('image-path', GLib.Variant('s', item.get_thumbnail()))
- self._notification.set_hint('image-data', None)
- self._notification.show()
- return
-
self._albumArtCache.lookup(item, IMAGE_SIZE, IMAGE_SIZE, self._album_art_loaded)
def _album_art_loaded(self, image, path, data):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]