Only add actions if the notification system permits it

Fixes ugly dialogs in Ubuntu > 9.04. Changing the instructions in the bubbles would help the usability on such systems though.
This commit is contained in:
Philipp Gildein 2010-06-11 19:23:25 +02:00
parent 9707e69089
commit 9e094516bc

View file

@ -29,6 +29,12 @@ namespace SparkleShare {
AttachToStatusIcon (SparkleUI.NotificationIcon);
}
new public void AddAction (string action, string label, ActionHandler handler) {
if (System.Array.IndexOf (Notifications.Global.Capabilities, "actions") > -1) {
base.AddAction(action, label, handler);
}
}
}
}