don't be a hacker, use real quotation marks
This commit is contained in:
parent
80dc330a3f
commit
ea101f79b7
6
README
6
README
|
@ -23,12 +23,14 @@ to change and redistribute it under certain conditions. For more information
|
||||||
see the LICENSE file or visit http://www.gnu.org/licenses/gpl-3.0.html
|
see the LICENSE file or visit http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
||||||
|
|
||||||
SparklePony currently requires:
|
SparklePony currently requires (in alphabetical order):
|
||||||
- git >= 1.7.0.6
|
- ndesk-dbus-devel >= 0.6
|
||||||
|
- git >= 1.7
|
||||||
- gtk-sharp2 >= 2.12.7
|
- gtk-sharp2 >= 2.12.7
|
||||||
- mono-core >= 2.2
|
- mono-core >= 2.2
|
||||||
- notify-sharp >= 0.4.0
|
- notify-sharp >= 0.4.0
|
||||||
|
|
||||||
|
|
||||||
Installing dependencies on Fedora:
|
Installing dependencies on Fedora:
|
||||||
# yum install git gtk-sharp2 gtk-sharp2-devel mono-core notify-sharp \
|
# yum install git gtk-sharp2 gtk-sharp2-devel mono-core notify-sharp \
|
||||||
notify-sharp-devel
|
notify-sharp-devel
|
||||||
|
|
|
@ -145,9 +145,9 @@ public class SparklePonyUI {
|
||||||
Directory.CreateDirectory (ConfigPath + "avatars/");
|
Directory.CreateDirectory (ConfigPath + "avatars/");
|
||||||
Console.WriteLine ("[Config] Created '" + ConfigPath + "avatars'");
|
Console.WriteLine ("[Config] Created '" + ConfigPath + "avatars'");
|
||||||
|
|
||||||
Directory.CreateDirectory (ConfigPath + "avatars/22x22/");
|
Directory.CreateDirectory (ConfigPath + "avatars/24x24/");
|
||||||
Console.WriteLine ("[Config] Created '" + ConfigPath +
|
Console.WriteLine ("[Config] Created '" + ConfigPath +
|
||||||
"avatars/22x22/'");
|
"avatars/24x24/'");
|
||||||
|
|
||||||
Directory.CreateDirectory (ConfigPath + "avatars/48x48/");
|
Directory.CreateDirectory (ConfigPath + "avatars/48x48/");
|
||||||
Console.WriteLine ("[Config] Created '" + ConfigPath +
|
Console.WriteLine ("[Config] Created '" + ConfigPath +
|
||||||
|
@ -515,12 +515,12 @@ public class Repository {
|
||||||
if (Line.IndexOf ("new file:") > -1 && !DoneAddCommit) {
|
if (Line.IndexOf ("new file:") > -1 && !DoneAddCommit) {
|
||||||
DoneAddCommit = true;
|
DoneAddCommit = true;
|
||||||
if (FilesAdded > 1)
|
if (FilesAdded > 1)
|
||||||
return "added '" +
|
return "added ‘" +
|
||||||
Line.Replace ("#\tnew file:", "").Trim () +
|
Line.Replace ("#\tnew file:", "").Trim () +
|
||||||
"' and " + (FilesAdded - 1) + " more.";
|
"’ and " + (FilesAdded - 1) + " more.";
|
||||||
else
|
else
|
||||||
return "added '" +
|
return "added ‘" +
|
||||||
Line.Replace ("#\tnew file:", "").Trim () + "'.";
|
Line.Replace ("#\tnew file:", "").Trim () + "’.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format message for when files are edited,
|
// Format message for when files are edited,
|
||||||
|
@ -528,12 +528,12 @@ public class Repository {
|
||||||
if (Line.IndexOf ("modified:") > -1 && !DoneEditCommit) {
|
if (Line.IndexOf ("modified:") > -1 && !DoneEditCommit) {
|
||||||
DoneEditCommit = true;
|
DoneEditCommit = true;
|
||||||
if (FilesEdited > 1)
|
if (FilesEdited > 1)
|
||||||
return "edited '" +
|
return "edited ‘" +
|
||||||
Line.Replace ("#\tmodified:", "").Trim () +
|
Line.Replace ("#\tmodified:", "").Trim () +
|
||||||
"' and " + (FilesEdited - 1) + " more.";
|
"’ and " + (FilesEdited - 1) + " more.";
|
||||||
else
|
else
|
||||||
return "edited '" +
|
return "edited ‘" +
|
||||||
Line.Replace ("#\tmodified:", "").Trim () + "'.";
|
Line.Replace ("#\tmodified:", "").Trim () + "’.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format message for when files are edited,
|
// Format message for when files are edited,
|
||||||
|
@ -541,12 +541,12 @@ public class Repository {
|
||||||
if (Line.IndexOf ("deleted:") > -1 && !DoneDeleteCommit) {
|
if (Line.IndexOf ("deleted:") > -1 && !DoneDeleteCommit) {
|
||||||
DoneDeleteCommit = true;
|
DoneDeleteCommit = true;
|
||||||
if (FilesDeleted > 1)
|
if (FilesDeleted > 1)
|
||||||
return "deleted '" +
|
return "deleted ‘" +
|
||||||
Line.Replace ("#\tdeleted:", "").Trim () +
|
Line.Replace ("#\tdeleted:", "").Trim () +
|
||||||
"' and " + (FilesDeleted - 1) + " more.";
|
"’ and " + (FilesDeleted - 1) + " more.";
|
||||||
else
|
else
|
||||||
return "deleted '" +
|
return "deleted ‘" +
|
||||||
Line.Replace ("#\tdeleted:", "").Trim () + "'.";
|
Line.Replace ("#\tdeleted:", "").Trim () + "’.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format message for when files are renamed,
|
// Format message for when files are renamed,
|
||||||
|
@ -554,14 +554,14 @@ public class Repository {
|
||||||
if (Line.IndexOf ("renamed:") > -1 && !DoneRenameCommit) {
|
if (Line.IndexOf ("renamed:") > -1 && !DoneRenameCommit) {
|
||||||
DoneDeleteCommit = true;
|
DoneDeleteCommit = true;
|
||||||
if (FilesRenamed > 1)
|
if (FilesRenamed > 1)
|
||||||
return "renamed '" +
|
return "renamed ‘" +
|
||||||
Line.Replace ("#\trenamed:", "").Trim ().Replace
|
Line.Replace ("#\trenamed:", "").Trim ().Replace
|
||||||
(" -> ", "' to '") + "' and " + (FilesDeleted - 1) +
|
(" -> ", "’ to ‘") + "’ and " + (FilesDeleted - 1) +
|
||||||
" more.";
|
" more.";
|
||||||
else
|
else
|
||||||
return "renamed '" +
|
return "renamed ‘" +
|
||||||
Line.Replace ("#\trenamed:", "").Trim ().Replace
|
Line.Replace ("#\trenamed:", "").Trim ().Replace
|
||||||
(" -> ", "' to '") + "'.";
|
(" -> ", "’ to ‘") + "’.";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -670,7 +670,7 @@ public class SparklePonyWindow : Window {
|
||||||
// Creates a visual list of repositories
|
// Creates a visual list of repositories
|
||||||
public VBox CreateReposList() {
|
public VBox CreateReposList() {
|
||||||
|
|
||||||
string RemoteFolderIcon = "/usr/share/icons/gnome/22x22/places/folder.png";
|
string RemoteFolderIcon = "/usr/share/icons/gnome/24x24/places/folder.png";
|
||||||
TreeIter ReposIter;
|
TreeIter ReposIter;
|
||||||
foreach (Repository Repository in Repositories) {
|
foreach (Repository Repository in Repositories) {
|
||||||
ReposIter = ReposStore.Prepend ();
|
ReposIter = ReposStore.Prepend ();
|
||||||
|
@ -693,6 +693,7 @@ public class SparklePonyWindow : Window {
|
||||||
ReposView.ActivateRow (ReposStore.GetPath (ReposIter),
|
ReposView.ActivateRow (ReposStore.GetPath (ReposIter),
|
||||||
ReposViewColumns [1]);
|
ReposViewColumns [1]);
|
||||||
|
|
||||||
|
|
||||||
HBox AddRemoveButtons = new HBox (false, 6);
|
HBox AddRemoveButtons = new HBox (false, 6);
|
||||||
Button AddButton = new Button ("Add...");
|
Button AddButton = new Button ("Add...");
|
||||||
AddRemoveButtons.PackStart (AddButton, true, true, 0);
|
AddRemoveButtons.PackStart (AddButton, true, true, 0);
|
||||||
|
@ -775,7 +776,7 @@ public class SparklePonyWindow : Window {
|
||||||
|
|
||||||
// We're using the snowman here to separate messages :)
|
// We're using the snowman here to separate messages :)
|
||||||
Process.StartInfo.Arguments =
|
Process.StartInfo.Arguments =
|
||||||
"log --format=\"%at☃In '" + Repository.Name + "', %an %s☃%cr\" -25";
|
"log --format=\"%at☃In ‘" + Repository.Name + "’, %an %s☃%cr\" -25";
|
||||||
|
|
||||||
Process.StartInfo.WorkingDirectory = Repository.RepoPath;
|
Process.StartInfo.WorkingDirectory = Repository.RepoPath;
|
||||||
Process.Start();
|
Process.Start();
|
||||||
|
@ -802,16 +803,16 @@ public class SparklePonyWindow : Window {
|
||||||
string IconFile =
|
string IconFile =
|
||||||
"/usr/share/icons/hicolor/16x16/status/document-edited.png";
|
"/usr/share/icons/hicolor/16x16/status/document-edited.png";
|
||||||
|
|
||||||
if (Message.IndexOf (" added '") > -1)
|
if (Message.IndexOf (" added ‘") > -1)
|
||||||
IconFile =
|
IconFile =
|
||||||
"/usr/share/icons/hicolor/16x16/status/document-added.png";
|
"/usr/share/icons/hicolor/16x16/status/document-added.png";
|
||||||
|
|
||||||
if (Message.IndexOf (" deleted '") > -1)
|
if (Message.IndexOf (" deleted ‘") > -1)
|
||||||
IconFile =
|
IconFile =
|
||||||
"/usr/share/icons/hicolor/16x16/status/document-removed.png";
|
"/usr/share/icons/hicolor/16x16/status/document-removed.png";
|
||||||
|
|
||||||
if (Message.IndexOf (" moved '") > -1 ||
|
if (Message.IndexOf (" moved ‘") > -1 ||
|
||||||
Message.IndexOf (" renamed '") > -1)
|
Message.IndexOf (" renamed ‘") > -1)
|
||||||
|
|
||||||
IconFile =
|
IconFile =
|
||||||
"/usr/share/icons/hicolor/16x16/status/document-moved.png";
|
"/usr/share/icons/hicolor/16x16/status/document-moved.png";
|
||||||
|
@ -825,6 +826,8 @@ public class SparklePonyWindow : Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
TreeView LogView = new TreeView (LogStore);
|
TreeView LogView = new TreeView (LogStore);
|
||||||
|
LogView.HeadersVisible = false;
|
||||||
|
|
||||||
LogView.AppendColumn ("", new Gtk.CellRendererPixbuf (), "pixbuf", 0);
|
LogView.AppendColumn ("", new Gtk.CellRendererPixbuf (), "pixbuf", 0);
|
||||||
LogView.AppendColumn ("", new Gtk.CellRendererText (), "text", 1);
|
LogView.AppendColumn ("", new Gtk.CellRendererText (), "text", 1);
|
||||||
LogView.AppendColumn ("", new Gtk.CellRendererText (), "text", 2);
|
LogView.AppendColumn ("", new Gtk.CellRendererText (), "text", 2);
|
||||||
|
@ -836,7 +839,7 @@ public class SparklePonyWindow : Window {
|
||||||
|
|
||||||
ScrolledWindow ScrolledWindow = new ScrolledWindow ();
|
ScrolledWindow ScrolledWindow = new ScrolledWindow ();
|
||||||
ScrolledWindow.AddWithViewport (LogView);
|
ScrolledWindow.AddWithViewport (LogView);
|
||||||
ScrolledWindow.BorderWidth = 12;
|
ScrolledWindow.BorderWidth = 6;
|
||||||
|
|
||||||
return ScrolledWindow;
|
return ScrolledWindow;
|
||||||
|
|
||||||
|
@ -888,17 +891,17 @@ public class SparklePonyWindow : Window {
|
||||||
|
|
||||||
// Actually add to the list
|
// Actually add to the list
|
||||||
PeopleIter = PeopleStore.Prepend ();
|
PeopleIter = PeopleStore.Prepend ();
|
||||||
PeopleStore.SetValue (PeopleIter, 0, new Gdk.Pixbuf (SparklePonyHelpers.SparklePonyHelpers.GetAvatarFileName (UserEmail, 22)));
|
PeopleStore.SetValue (PeopleIter, 0, new Gdk.Pixbuf (SparklePonyHelpers.SparklePonyHelpers.GetAvatarFileName (UserEmail, 24)));
|
||||||
PeopleStore.SetValue (PeopleIter, 1, UserName + " ");
|
PeopleStore.SetValue (PeopleIter, 1, UserName + " ");
|
||||||
PeopleStore.SetValue (PeopleIter, 2, UserEmail + " ");
|
PeopleStore.SetValue (PeopleIter, 2, UserEmail + " ");
|
||||||
|
|
||||||
// Let's try to get the person's gravatar for next time
|
// Let's try to get the person's gravatar for next time
|
||||||
string AvatarsDirSmall =
|
string AvatarsDirSmall =
|
||||||
Environment.GetEnvironmentVariable("HOME") +
|
Environment.GetEnvironmentVariable("HOME") +
|
||||||
"/.config/sparklepony/avatars/22x22/";
|
"/.config/sparklepony/avatars/24x24/";
|
||||||
|
|
||||||
WebClient WebClient1 = new WebClient ();
|
WebClient WebClient1 = new WebClient ();
|
||||||
Uri UriSmall = new Uri ("http://www.gravatar.com/avatar/" + SparklePonyHelpers.SparklePonyHelpers.GetMD5 (UserEmail) + ".jpg?s=22");
|
Uri UriSmall = new Uri ("http://www.gravatar.com/avatar/" + SparklePonyHelpers.SparklePonyHelpers.GetMD5 (UserEmail) + ".jpg?s=24");
|
||||||
WebClient1.DownloadFileAsync (UriSmall, AvatarsDirSmall + UserEmail);
|
WebClient1.DownloadFileAsync (UriSmall, AvatarsDirSmall + UserEmail);
|
||||||
|
|
||||||
string AvatarsDirLarge =
|
string AvatarsDirLarge =
|
||||||
|
@ -921,6 +924,8 @@ public class SparklePonyWindow : Window {
|
||||||
PeopleViewColumns [0].MinWidth = 32;
|
PeopleViewColumns [0].MinWidth = 32;
|
||||||
PeopleViewColumns [1].Expand = true;
|
PeopleViewColumns [1].Expand = true;
|
||||||
|
|
||||||
|
PeopleView.HeadersVisible = false;
|
||||||
|
|
||||||
ScrolledWindow ScrolledWindow = new ScrolledWindow ();
|
ScrolledWindow ScrolledWindow = new ScrolledWindow ();
|
||||||
ScrolledWindow.AddWithViewport (PeopleView);
|
ScrolledWindow.AddWithViewport (PeopleView);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue