banshee r5023 - trunk/banshee/src/Extensions/Banshee.NotificationArea/Notifications
- From: bratsche svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r5023 - trunk/banshee/src/Extensions/Banshee.NotificationArea/Notifications
- Date: Tue, 10 Feb 2009 20:08:55 +0000 (UTC)
Author: bratsche
Date: Tue Feb 10 20:08:55 2009
New Revision: 5023
URL: http://svn.gnome.org/viewvc/banshee?rev=5023&view=rev
Log:
Added a test in case Capabilities can be null
Modified:
trunk/banshee/src/Extensions/Banshee.NotificationArea/Notifications/Notification.cs
Modified: trunk/banshee/src/Extensions/Banshee.NotificationArea/Notifications/Notification.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.NotificationArea/Notifications/Notification.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.NotificationArea/Notifications/Notification.cs Tue Feb 10 20:08:55 2009
@@ -282,7 +282,8 @@
}
public void AddAction (string action, string label, ActionHandler handler) {
- if (Array.IndexOf (Notifications.Global.Capabilities, "actions") > -1) {
+ if (Notifications.Global.Capabilities &&
+ Array.IndexOf (Notifications.Global.Capabilities, "actions") > -1) {
lock (action_map) {
action_map[action] = new ActionTuple (label, handler);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]