[gnome-music] notification: remove code duplication: album_art_loader already avoided passing a pixbuf stream if a



commit 569241ae6a5aafeee689c73cd28884309f762f15
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]