From 16ea7b06d0056964aa902c0e6a83570383838adf Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 8 Aug 2015 14:18:39 +0100 Subject: [PATCH] linux bubbles: Clean up --- SparkleShare/Linux/SparkleBubbles.cs | 42 ++++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/SparkleShare/Linux/SparkleBubbles.cs b/SparkleShare/Linux/SparkleBubbles.cs index fb0aa38f..0a3011f6 100755 --- a/SparkleShare/Linux/SparkleBubbles.cs +++ b/SparkleShare/Linux/SparkleBubbles.cs @@ -39,31 +39,31 @@ namespace SparkleShare { if (!Program.Controller.NotificationsEnabled) return; - Application.Invoke (delegate { - Notification notification = new Notification () { - Summary = title, - Body = subtext, - Timeout = 5 * 1000, - Urgency = Urgency.Low - }; + Application.Invoke (delegate { + Notification notification = new Notification () { + Summary = title, + Body = subtext, + Timeout = 5 * 1000, + Urgency = Urgency.Low + }; - if (image_path != null) - notification.Icon = new Gdk.Pixbuf (image_path); - else - notification.IconName = "folder-sparkleshare"; + if (image_path != null) + notification.Icon = new Gdk.Pixbuf (image_path); + else + notification.IconName = "folder-sparkleshare"; - notification.Closed += delegate (object o, EventArgs args) { - if ((args as CloseArgs).Reason == CloseReason.User) - Controller.BubbleClicked (); - }; + notification.Closed += delegate (object o, EventArgs args) { + if ((args as CloseArgs).Reason == CloseReason.User) + Controller.BubbleClicked (); + }; - try { - notification.Show (); + try { + notification.Show (); - } catch (Exception e) { - SparkleLogger.LogInfo ("Notification", "Error showing notification: ", e); - } - }); + } catch (Exception e) { + SparkleLogger.LogInfo ("Notification", "Error showing notification: ", e); + } + }); } } }