From e0183ca779a470da2ba674a80010b71c7cbe7ca2 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 22 Oct 2010 09:44:16 +0100 Subject: [PATCH] Fix some whitespace --- SparkleShare/SparkleStatusIcon.cs | 13 ++++++++++--- SparkleShare/SparkleUIHelpers.cs | 3 +-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/SparkleShare/SparkleStatusIcon.cs b/SparkleShare/SparkleStatusIcon.cs index e1e0aee9..073dcf11 100644 --- a/SparkleShare/SparkleStatusIcon.cs +++ b/SparkleShare/SparkleStatusIcon.cs @@ -300,6 +300,7 @@ namespace SparkleShare { } + // Makes the menu visible private void ShowMenu (object o, EventArgs args) { @@ -336,19 +337,25 @@ namespace SparkleShare { if (SparkleShare.Controller.Repositories.Count == 0) { StateText = _("No folders yet"); - Pixbuf = AnimationFrames [0]; + Application.Invoke (delegate { + Pixbuf = AnimationFrames [0]; + }); } else { if (error) { StateText = _("Not everything is synced"); - Pixbuf = SparkleUIHelpers.GetIcon ("sparkleshare-syncing-error", 24); + Application.Invoke (delegate { + Pixbuf = SparkleUIHelpers.GetIcon ("sparkleshare-syncing-error", 24); + }); } else { StateText = _("Up to date") + " (" + SparkleShare.Controller.FolderSize + ")"; - Pixbuf = AnimationFrames [0]; + Application.Invoke (delegate { + Pixbuf = AnimationFrames [0]; + }); } diff --git a/SparkleShare/SparkleUIHelpers.cs b/SparkleShare/SparkleUIHelpers.cs index 288877bf..f3ff8a5d 100644 --- a/SparkleShare/SparkleUIHelpers.cs +++ b/SparkleShare/SparkleUIHelpers.cs @@ -24,8 +24,7 @@ using System.Text; namespace SparkleShare { - public static class SparkleUIHelpers - { + public static class SparkleUIHelpers { // Creates an MD5 hash of input public static string GetMD5 (string s)