[gnome-music] notification: don't touch thumbnail outside _on_thumbnail_updated function



commit c63196493e58e96bb56ebeb5e7e0952f6ca0e018
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Fri Aug 1 15:51:42 2014 +0200

    notification: don't touch thumbnail outside _on_thumbnail_updated function

 gnomemusic/notification.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/notification.py b/gnomemusic/notification.py
index 6f1d3d7..bf7e3a4 100644
--- a/gnomemusic/notification.py
+++ b/gnomemusic/notification.py
@@ -105,8 +105,6 @@ class NotificationManager:
                                                              '<i>' + album + '</i>'),
                                       'gnome-music')
 
-            self._notification.set_hint('image-path', None)
-            self._notification.set_hint('image-data', self._symbolicIconSerialized)
             self._notification.show()
 
     @log
@@ -114,6 +112,9 @@ class NotificationManager:
         if path:
             self._notification.set_hint('image-path', GLib.Variant('s', path))
             self._notification.set_hint('image-data', None)
+        else:
+            self._notification.set_hint('image-path', None)
+            self._notification.set_hint('image-data', self._symbolicIconSerialized)
         self._notification.show()
 
     @log


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