Save work
This commit is contained in:
parent
057c96c288
commit
c2a38157ab
|
@ -444,10 +444,13 @@ namespace SparkleLib {
|
|||
|
||||
if (change_type.Equals ("A")) {
|
||||
change_set.Added.Add (file_path);
|
||||
|
||||
} else if (change_type.Equals ("M")) {
|
||||
change_set.Edited.Add (file_path);
|
||||
|
||||
} else if (change_type.Equals ("D")) {
|
||||
change_set.Deleted.Add (file_path);
|
||||
|
||||
} else if (change_type.Equals ("R")) {
|
||||
int tab_pos = entry_line.LastIndexOf ("\t");
|
||||
file_path = entry_line.Substring (42, tab_pos - 42);
|
||||
|
|
|
@ -63,6 +63,7 @@ namespace SparkleShare {
|
|||
{
|
||||
string content_path = Directory.GetParent (
|
||||
System.AppDomain.CurrentDomain.BaseDirectory).ToString ();
|
||||
|
||||
string app_path = Directory.GetParent (content_path).ToString ();
|
||||
string growl_path = Path.Combine (app_path, "Frameworks", "Growl.framework", "Growl");
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
@ -240,8 +241,22 @@ namespace SparkleShare {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public List <SparkleChangeSet> GetLog (string name)
|
||||
|
||||
public List<SparkleChangeSet> GetLog ()
|
||||
{Console.WriteLine ("PPPPPPPPPPP");
|
||||
List<SparkleChangeSet> list = new List<SparkleChangeSet> ();
|
||||
|
||||
foreach (SparkleRepoBase repo in Repositories) {
|
||||
list.AddRange (repo.GetChangeSets (10));
|
||||
Console.WriteLine (">>>" + repo.Name);
|
||||
}
|
||||
|
||||
list.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
public List<SparkleChangeSet> GetLog (string name)
|
||||
{
|
||||
string path = Path.Combine (SparklePaths.SparklePath, name);
|
||||
int log_size = 30;
|
||||
|
|
|
@ -47,8 +47,11 @@ namespace SparkleShare {
|
|||
public SparkleUI ()
|
||||
{
|
||||
// Initialize the application
|
||||
Application.Init ();
|
||||
Application.Init ();Console.WriteLine ("OOOOOOOOO");
|
||||
|
||||
foreach (SparkleChangeSet change_set in SparkleShare.Controller.GetLog ()) {
|
||||
Console.WriteLine (change_set.Timestamp.ToString ());
|
||||
}
|
||||
// Create the statusicon
|
||||
StatusIcon = new SparkleStatusIcon ();
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class='event-entry'>
|
||||
|
||||
<div class='event-entry-content'>
|
||||
<div class='event-entry-content' style='border-bottom: 3px #8ae234 solid'>
|
||||
|
||||
<div class='no-buddy-icon'>
|
||||
<div class='buddy-icon' style='background-image: url("<!-- $event-avatar-url -->");'></div>
|
||||
|
@ -11,10 +11,9 @@
|
|||
<!-- $event-entry-content -->
|
||||
</div>
|
||||
|
||||
<div class='event-time'><!-- $event-time --></div>
|
||||
<div class='event-time' style='position: relative;float: right'>gnome-design • <!-- $event-time --></div>
|
||||
|
||||
<div style='clear: both'></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
margin-right: auto;
|
||||
margin-bottom: 9px;
|
||||
padding: 18px;
|
||||
-webkit-border-radius: 6px;
|
||||
-webkit-border-radius: 6px 6px 0 0;
|
||||
border: #ddd 1px solid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue