From e42bdea2884aab95c4594aeb461df0f528a4bd1e Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 16 Jun 2010 00:10:08 +0100 Subject: [PATCH] remove unused EventBubble method --- SparkleShare/SparkleRepo.cs | 54 ++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 31 deletions(-) diff --git a/SparkleShare/SparkleRepo.cs b/SparkleShare/SparkleRepo.cs index dc6f9940..b952fe6f 100644 --- a/SparkleShare/SparkleRepo.cs +++ b/SparkleShare/SparkleRepo.cs @@ -325,9 +325,30 @@ namespace SparkleShare { "sparkleshare.notify"); if (File.Exists (NotifySettingFile)) { + SparkleHelpers.DebugInfo ("Notification", "[" + Name + "] Showing message..."); - ShowEventBubble (LastCommitUserName + " " + LastCommitMessage, - SparkleHelpers.GetAvatar (LastCommitEmail, 48), true); + + SparkleBubble StuffChangedBubble = new SparkleBubble (LastCommitUserName, LastCommitMessage); + StuffChangedBubble.Icon = SparkleHelpers.GetAvatar (LastCommitEmail, 48); + + // Add a button to open the folder where the changed file is + StuffChangedBubble.AddAction ("", _("Open Folder"), + delegate { + switch (SparklePlatform.Name) { + case "GNOME": + Process.StartInfo.FileName = "xdg-open"; + break; + case "OSX": + Process.StartInfo.FileName = "open"; + break; + } + Process.StartInfo.Arguments = LocalPath; + Process.Start (); + Process.StartInfo.FileName = "git"; + } ); + + StuffChangedBubble.Show (); + } } @@ -452,35 +473,6 @@ namespace SparkleShare { } - // Shows a notification with text and image - public void ShowEventBubble (string Title, - Gdk.Pixbuf Avatar, - bool ShowButtons) { - - SparkleBubble StuffChangedBubble = new SparkleBubble (Title, ""); - StuffChangedBubble.Icon = Avatar; - - // Add a button to open the folder where the changed file is - if (ShowButtons) - StuffChangedBubble.AddAction ("", _("Open Folder"), - delegate { - switch (SparklePlatform.Name) { - case "GNOME": - Process.StartInfo.FileName = "xdg-open"; - break; - case "OSX": - Process.StartInfo.FileName = "open"; - break; - } - Process.StartInfo.Arguments = LocalPath; - Process.Start (); - Process.StartInfo.FileName = "git"; - } ); - - StuffChangedBubble.Show (); - - } - } }