From 69829cb54753333524918e6c28d4af75d969b73a Mon Sep 17 00:00:00 2001 From: serras Date: Thu, 19 Jan 2012 20:21:48 +0100 Subject: [PATCH] Make it compile again in Windows --- SparkleLib/Git/SparkleRepoGit.cs | 8 ++++---- SparkleLib/windows/SparkleLib.csproj | 3 +++ SparkleShare/SparkleStatusIcon.cs | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index 522ed081..c02fc38d 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -71,7 +71,7 @@ namespace SparkleLib { public override double Size { get { - string file_path = Path.Combine (LocalPath, ".git", "repo_size"); + string file_path = SparkleHelpers.CombineMore (LocalPath, ".git", "repo_size"); try { return double.Parse (File.ReadAllText (file_path)); @@ -85,7 +85,7 @@ namespace SparkleLib { public override double HistorySize { get { - string file_path = Path.Combine (LocalPath, ".git", "repo_history_size"); + string file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_history_size"); try { return double.Parse (File.ReadAllText (file_path)); @@ -105,8 +105,8 @@ namespace SparkleLib { double history_size = CalculateSize ( new DirectoryInfo (Path.Combine (LocalPath, ".git"))); - string size_file_path = Path.Combine (LocalPath, ".git", "repo_size"); - string history_size_file_path = Path.Combine (LocalPath, ".git", "repo_history_size"); + string size_file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_size"); + string history_size_file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_history_size"); File.WriteAllText (size_file_path, size.ToString ()); File.WriteAllText (history_size_file_path, history_size.ToString ()); diff --git a/SparkleLib/windows/SparkleLib.csproj b/SparkleLib/windows/SparkleLib.csproj index 0bf9c160..0fff07df 100644 --- a/SparkleLib/windows/SparkleLib.csproj +++ b/SparkleLib/windows/SparkleLib.csproj @@ -67,6 +67,9 @@ SparkleFetcherGit.cs + + + SparkleGit.cs Component diff --git a/SparkleShare/SparkleStatusIcon.cs b/SparkleShare/SparkleStatusIcon.cs index 4d70a5b2..252075a7 100644 --- a/SparkleShare/SparkleStatusIcon.cs +++ b/SparkleShare/SparkleStatusIcon.cs @@ -363,4 +363,4 @@ namespace SparkleShare { SetProperty ("always-show-image", new GLib.Value (true)); } } -} +} \ No newline at end of file