]> git.pld-linux.org Git - packages/beagle.git/commitdiff
- galago 0.5.x fine tunning
authorfreetz <freetz@pld-linux.org>
Sun, 13 Aug 2006 07:00:55 +0000 (07:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    beagle-galago05.patch -> 1.1

beagle-galago05.patch [new file with mode: 0644]

diff --git a/beagle-galago05.patch b/beagle-galago05.patch
new file mode 100644 (file)
index 0000000..dbd26df
--- /dev/null
@@ -0,0 +1,42 @@
+diff -aurN beagle-0.2.7.orig/Util/Galago.cs beagle-0.2.7/Util/Galago.cs
+--- beagle-0.2.7.orig/Util/Galago.cs   2005-08-14 19:54:17.000000000 +0200
++++ beagle-0.2.7/Util/Galago.cs        2006-08-13 08:56:37.000000000 +0200
+@@ -35,15 +35,15 @@
+               public static string GetPresence (string service_id, string username)
+               {
+-                      if (! Galago.Core.Init ("beagle-galago-presence"))
++                      if (! Galago.Global.Init ("beagle-galago-presence"))
+                               return null;
+-                      Galago.Service service = Galago.Core.GetService (service_id, false, true);
++                      Galago.Service service = Galago.Global.GetService (service_id);
+                       if (service == null)
+                               return null;
+-                      Galago.Account account = service.GetAccount (username, true);
++                      Galago.Account account = service.GetAccount (username);
+                       if (account == null)
+                               return null;
+@@ -56,14 +56,14 @@
+                       string user_status = null;
+-                      if (presence.Idle == true) 
++                      if (presence == null) 
++                              user_status = ("No presence");
++                      else
+                               // FIXME: We need to translate this
+                               user_status = String.Format ("Idle {0}",
+-                                                           StringFu.DurationToPrettyString (DateTime.Now.AddSeconds (presence.IdleTime), DateTime.Now));
+-                      else
+-                              user_status = presence.ActiveStatus.Name;
++                                                           StringFu.DurationToPrettyString (presence.IdleTime, DateTime.Now));
+-                      Galago.Core.Uninit();
++                      Galago.Global.Uninit();
+                       return user_status;
+               }
This page took 0.096173 seconds and 4 git commands to generate.