From 487722112423d3c292b83527e33e3e554156e6cc Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 12 Jun 2010 14:12:52 +0100 Subject: [PATCH] make coding style consistent in sparklebubble --- SparkleShare/SparkleBubble.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/SparkleShare/SparkleBubble.cs b/SparkleShare/SparkleBubble.cs index 5064f261..e4fd1798 100644 --- a/SparkleShare/SparkleBubble.cs +++ b/SparkleShare/SparkleBubble.cs @@ -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); + } }