diff --git a/SparkleShare/SparkleLink.cs b/SparkleShare/SparkleLink.cs index 6a143cf1..0a24ad28 100644 --- a/SparkleShare/SparkleLink.cs +++ b/SparkleShare/SparkleLink.cs @@ -35,7 +35,7 @@ namespace SparkleShare { Add (label); // Only make links for files that exist - if (!File.Exists (url)) + if (!url.StartsWith ("http://") && !File.Exists (url)) return; // Use Tango blue for the links @@ -44,10 +44,10 @@ namespace SparkleShare { label.ModifyFg (StateType.Normal, color); // Open the URL when it is clicked - ButtonPressEvent += delegate { + ButtonReleaseEvent += delegate { Process process = new Process (); - process.StartInfo.FileName = "xdg-open"; + process.StartInfo.FileName = "gnome-open"; process.StartInfo.Arguments = url.Replace (" ", "\\ "); // Escape space-characters process.Start (); diff --git a/SparkleShare/SparkleLog.cs b/SparkleShare/SparkleLog.cs index bcdb94f1..2c5887ba 100644 --- a/SparkleShare/SparkleLog.cs +++ b/SparkleShare/SparkleLog.cs @@ -215,8 +215,11 @@ namespace SparkleShare { foreach (ActivityDay activity_day in activity_days) { + EventBox box = new EventBox (); + Label date_label = new Label ("") { UseMarkup = true, + Xalign = 0, Xpad = 9, Ypad = 9 }; @@ -242,7 +245,8 @@ namespace SparkleShare { } - layout_vertical.PackStart (date_label, true, true, 0); + box.Add (date_label); + layout_vertical.PackStart (box, true, true, 0); Gdk.Color color = Style.Foreground (StateType.Insensitive); string secondary_text_color = GdkColorToHex (color); @@ -261,7 +265,7 @@ namespace SparkleShare { link.ModifyBg (StateType.Normal, background_color); - link.ButtonPressEvent += delegate { + link.ButtonReleaseEvent += delegate { Destroy (); }; diff --git a/SparkleShare/SparkleStatusIcon.cs b/SparkleShare/SparkleStatusIcon.cs index 9e69714d..5274c88a 100644 --- a/SparkleShare/SparkleStatusIcon.cs +++ b/SparkleShare/SparkleStatusIcon.cs @@ -127,11 +127,15 @@ namespace SparkleShare { } + // Recursively gets a folder's size in bytes private double GetFolderSize (DirectoryInfo parent) { double size = 0; + // Ignore the temporary rebase-apply directory. + // This prevents potential crashes when files are being + // queried whilst the files have already been deleted. if (parent.Name.Equals ("rebase-apply")) return 0;