[banshee] Use banshee-panel for NotificationArea



commit 408d90d369d28662ff20343e67d405cf265f12cc
Author: Chow Loong Jin <hyperair ubuntu com>
Date:   Thu Mar 18 14:19:32 2010 +0800

    Use banshee-panel for NotificationArea
    
    This allows icon theme makers to have more control over which icon they
    want to override, either the menu/application icon, or the notification
    area icon.
    
    Also fallback to media-player-banshee if the icon is not found.
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../GtkNotificationAreaBox.cs                      |    3 ++-
 .../X11NotificationAreaBox.cs                      |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/GtkNotificationAreaBox.cs b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/GtkNotificationAreaBox.cs
index fae76e4..d2118d1 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/GtkNotificationAreaBox.cs
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/GtkNotificationAreaBox.cs
@@ -59,7 +59,8 @@ namespace Banshee.NotificationArea
         public GtkNotificationAreaBox (BaseClientWindow window)
         {
             Visible = false;
-            IconName = Banshee.ServiceStack.Application.IconName;
+            IconName = (IconThemeUtils.HasIcon ("banshee-panel")) ?
+                "banshee-panel" : Banshee.ServiceStack.Application.IconName;
 
             Tooltip = window.Title;
             window.TitleChanged += delegate { Tooltip = window.Title; };
diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs
index a1f84a5..fabbbac 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs
@@ -149,7 +149,8 @@ namespace Banshee.NotificationArea
                 icon_size = 32;
             }
 
-            icon.IconName = Banshee.ServiceStack.Application.IconName;
+            icon.IconName = (IconThemeUtils.HasIcon ("banshee-panel")) ?
+                "banshee-panel" : Banshee.ServiceStack.Application.IconName;
             icon.PixelSize = icon_size;
         }
 



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