make coding style consistent in sparklebubble

This commit is contained in:
Hylke Bons 2010-06-12 14:12:52 +01:00
parent b29d5a942f
commit 4877221124

View file

@ -29,10 +29,15 @@ 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);
}
new public void AddAction (string Action, string Label,
ActionHandler Handler) {
bool CanHaveButtons =
(System.Array.IndexOf (Notifications.Global.Capabilities,
"actions") > -1);
if (CanHaveButtons)
base.AddAction(Action, Label, Handler);
}
}