[Xfce4-commits] <postler:master> Suggest real name of the system user as default

Christian Dywan noreply at xfce.org
Sun Jul 18 15:40:19 CEST 2010


Updating branch refs/heads/master
         to 8047d49e0be8ed8a4b4f3e37c5af223c13e03c65 (commit)
       from 83ce45266315d2eb0223d576799ce7fc3eb2a309 (commit)

commit 8047d49e0be8ed8a4b4f3e37c5af223c13e03c65
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Jul 17 17:13:50 2010 +0200

    Suggest real name of the system user as default

 postler/postler-accountsetup.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/postler/postler-accountsetup.vala b/postler/postler-accountsetup.vala
index ba213b2..03f5385 100644
--- a/postler/postler-accountsetup.vala
+++ b/postler/postler-accountsetup.vala
@@ -69,6 +69,10 @@ public class Postler.AccountSetup : Gtk.Dialog {
     public static AccountSetup new_account () {
         var info = new AccountInfo ();
         info.type = AccountType.IMAP;
+        string realname = Environment.get_real_name ();
+        if (realname == "Unknown")
+            realname = "";
+        info.realname = realname.locale_to_utf8 (-1, null, null, null);
 
         var setup = new AccountSetup (info);
         setup.add_button (_("_Create Account"), Gtk.ResponseType.APPLY);



More information about the Xfce4-commits mailing list