From 859e0436cdd08688559a341f6c596e4b76b852ea Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 19 Mar 2011 11:55:16 +0000 Subject: [PATCH] [intro] Trim commas from the user's real name --- SparkleShare/Mac/SparkleIntro.cs | 1 + SparkleShare/SparkleIntro.cs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SparkleShare/Mac/SparkleIntro.cs b/SparkleShare/Mac/SparkleIntro.cs index 40c9db8f..64b61368 100644 --- a/SparkleShare/Mac/SparkleIntro.cs +++ b/SparkleShare/Mac/SparkleIntro.cs @@ -76,6 +76,7 @@ namespace SparkleShare { UserInfoForm.IntercellSpacing = new SizeF (4, 4); string full_name = new UnixUserInfo (UnixEnvironment.UserName).RealName; + full_name.TrimEnd (",".ToCharArray()); UserInfoForm.Cells [0].StringValue = full_name; UserInfoForm.Cells [1].StringValue = SparkleShare.Controller.UserEmail; diff --git a/SparkleShare/SparkleIntro.cs b/SparkleShare/SparkleIntro.cs index 89bc1b74..c7fc58ad 100644 --- a/SparkleShare/SparkleIntro.cs +++ b/SparkleShare/SparkleIntro.cs @@ -80,14 +80,15 @@ namespace SparkleShare { RowSpacing = 6 }; - UnixUserInfo unix_user_info = new UnixUserInfo (UnixEnvironment.UserName); + string full_name = new UnixUserInfo (UnixEnvironment.UserName).RealName; + full_name.TrimEnd (",".ToCharArray()); Label name_label = new Label ("" + _("Full Name:") + "") { UseMarkup = true, Xalign = 0 }; - NameEntry = new Entry (unix_user_info.RealName); + NameEntry = new Entry (full_name); NameEntry.Changed += delegate { CheckAccountForm (); };