fix crash due to change in path concatenations

This commit is contained in:
Hylke Bons 2010-06-05 00:22:58 +02:00
parent 256afe3a5e
commit d0092847ab
5 changed files with 10 additions and 9 deletions

View file

@ -49,7 +49,7 @@ namespace SparkleShare {
WebClient WebClient = new WebClient ();
Uri GravatarUri = new Uri ("http://www.gravatar.com/avatar/" +
GetMD5 (Email) + ".jpg?s=" + Size + "&d=404");
// TODO: Clean paths
string TmpFile = SparklePaths.SparkleTmpPath + Email + Size;
if (!File.Exists (TmpFile)) {

View file

@ -23,7 +23,8 @@ namespace SparkleShare {
public static class SparklePaths {
public static string SparkleTmpPath =
Path.Combine ("tmp", "sparkleshare");
SparkleHelpers.CombineMore (Path.VolumeSeparatorChar.ToString (),
"tmp", "sparkleshare");
private static UnixUserInfo UnixUserInfo =
new UnixUserInfo (UnixEnvironment.UserName);

View file

@ -100,7 +100,7 @@ namespace SparkleShare {
Menu.Add (new SeparatorMenuItem ());
CheckMenuItem NotifyCheckMenuItem =
new CheckMenuItem (_("Show notifications"));
new CheckMenuItem (_("Show Notifications"));
Menu.Add (NotifyCheckMenuItem);
Menu.Add (new SeparatorMenuItem ());

View file

@ -98,7 +98,7 @@ namespace SparkleShare {
case "GNOME":
Process.StartInfo.FileName = "gvfs-set-attribute";
Process.StartInfo.Arguments =
Folder + " metadata::emblems [synced]";
"-t string " + Folder + " metadata::emblems [synced]";
Process.Start ();
break;
}

View file

@ -226,7 +226,6 @@ namespace SparkleShare {
typeof (string),
typeof (string));
int i = 0;
TreeIter Iter;
TreePath TreePath;
@ -241,14 +240,15 @@ namespace SparkleShare {
string UserName = Parts [0];
string UserEmail = Parts [1];
// Do something special if the person is you
if (UserEmail.Equals (SparkleRepo.UserEmail))
UserEmail = _("Thats you!");
// Actually add to the list
Iter = PeopleStore.Prepend ();
PeopleStore.SetValue (Iter, 0,
SparkleHelpers.GetAvatar (UserEmail , 32));
// Do something special if the person is you
if (UserEmail.Equals (SparkleRepo.UserEmail))
UserEmail = _("Thats you!");
PeopleStore.SetValue (Iter, 1,
"<b>" + UserName + "</b>\n" +
"<span font_size=\"smaller\">" +