Make it compile again in Windows

This commit is contained in:
serras 2012-01-19 20:21:48 +01:00
parent 8eedf5b148
commit 69829cb547
3 changed files with 8 additions and 5 deletions

View file

@ -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 ());

View file

@ -67,6 +67,9 @@
<ItemGroup>
<Compile Include="..\Git\SparkleFetcherGit.cs">
<Link>SparkleFetcherGit.cs</Link>
</Compile>
<Compile Include="..\Git\SparkleGit.cs">
<Link>SparkleGit.cs</Link>
<SubType>Component</SubType>
</Compile>
<Compile Include="..\Git\SparkleRepoGit.cs">

View file

@ -363,4 +363,4 @@ namespace SparkleShare {
SetProperty ("always-show-image", new GLib.Value (true));
}
}
}
}