[Galago-commits] r2521 - in trunk/libgalago: . libgalago
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Wed Feb 1 20:52:00 PST 2006
Author: chipx86
Date: 2006-02-01 20:51:57 -0800 (Wed, 01 Feb 2006)
New Revision: 2521
Modified:
trunk/libgalago/ChangeLog
trunk/libgalago/libgalago/galago-account.c
Log:
Add back _galago_account_set_person(). galago-daemon uses it.
Modified: trunk/libgalago/ChangeLog
===================================================================
--- trunk/libgalago/ChangeLog 2006-02-02 04:13:10 UTC (rev 2520)
+++ trunk/libgalago/ChangeLog 2006-02-02 04:51:57 UTC (rev 2521)
@@ -1,3 +1,8 @@
+Wed Feb 01 20:51:34 PST 2006 Christian Hammond <chipx86 at chipx86.com>
+
+ * libgalago/galago-account.c:
+ - Add back _galago_account_set_person(). galago-daemon uses it.
+
Wed Feb 01 19:49:42 PST 2006 Christian Hammond <chipx86 at chipx86.com>
* configure.ac:
Modified: trunk/libgalago/libgalago/galago-account.c
===================================================================
--- trunk/libgalago/libgalago/galago-account.c 2006-02-02 04:13:10 UTC (rev 2520)
+++ trunk/libgalago/libgalago/galago-account.c 2006-02-02 04:51:57 UTC (rev 2521)
@@ -586,6 +586,24 @@
return account->priv->service;
}
+void
+_galago_account_set_person(GalagoAccount *account, GalagoPerson *person)
+{
+ g_return_if_fail(account != NULL);
+ g_return_if_fail(person != NULL);
+ g_return_if_fail(GALAGO_IS_ACCOUNT(account));
+ g_return_if_fail(GALAGO_IS_PERSON(person));
+ g_return_if_fail(galago_object_get_origin(GALAGO_OBJECT(person)) ==
+ galago_object_get_origin(GALAGO_OBJECT(account)));
+
+ if (account->priv->person == person)
+ return;
+
+ _galago_person_remove_account(account->priv->person, account);
+ account->priv->person = person;
+ _galago_person_add_account(person, account);
+}
+
GalagoPerson *
galago_account_get_person(const GalagoAccount *account)
{
More information about the galago-commits
mailing list