[banshee] Based on a patch from Nicolò Chieffo, only scale notification cover art when talking to the notific
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee] Based on a patch from Nicolò Chieffo, only scale notification cover art when talking to the notific
- Date: Thu, 14 May 2009 13:37:50 -0400 (EDT)
commit df90f5e3220898814c054ee80d65301daf683955
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu May 14 12:35:58 2009 -0500
Based on a patch from Nicolò Chieffo, only scale notification cover art when talking to the notification-daemon (BGO #574400)
---
.../NotificationAreaService.cs | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
index 95431ae..afe1b1c 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
@@ -371,6 +371,13 @@ namespace Banshee.NotificationArea
rating_menu_item.Hide ();
}
}
+
+ private bool IsNotificationDaemon {
+ get {
+ var name = Notifications.Global.ServerInformation.Name;
+ return name == "notification-daemon" || name == "Notification Daemon";
+ }
+ }
private void ShowTrackNotification ()
{
@@ -398,7 +405,11 @@ namespace Banshee.NotificationArea
Gdk.Pixbuf image = null;
if (artwork_manager_service != null) {
- image = artwork_manager_service.LookupScalePixbuf (current_track.ArtworkId, 42);
+ if (IsNotificationDaemon) {
+ image = artwork_manager_service.LookupScalePixbuf (current_track.ArtworkId, 42);
+ } else {
+ image = artwork_manager_service.LookupPixbuf (current_track.ArtworkId);
+ }
}
if (image == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]