aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2010-12-23 09:22:59 +0800
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-02-02 04:28:50 +0800
commit2ef91742f4fedf3dfb398021619ac437dd4f3def (patch)
treedaeeab9ac90dd910c714602816b5213845a832bb /libempathy
parent5b04829ea31a9d18f92f76061aea3eb4d1571531 (diff)
downloadgsoc2013-empathy-2ef91742f4fedf3dfb398021619ac437dd4f3def.tar
gsoc2013-empathy-2ef91742f4fedf3dfb398021619ac437dd4f3def.tar.gz
gsoc2013-empathy-2ef91742f4fedf3dfb398021619ac437dd4f3def.tar.bz2
gsoc2013-empathy-2ef91742f4fedf3dfb398021619ac437dd4f3def.tar.lz
gsoc2013-empathy-2ef91742f4fedf3dfb398021619ac437dd4f3def.tar.xz
gsoc2013-empathy-2ef91742f4fedf3dfb398021619ac437dd4f3def.tar.zst
gsoc2013-empathy-2ef91742f4fedf3dfb398021619ac437dd4f3def.zip
Adjust for FolksHasPresence -> FolksPresenceOwner
Fixes bgo#637847.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index e7b5bd507..f91b587c7 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -484,8 +484,8 @@ empathy_contact_set_presence_message (EmpathyContact *contact,
if (priv->persona != NULL)
{
- folks_presence_set_presence_message (FOLKS_PRESENCE (priv->persona),
- message);
+ folks_presence_owner_set_presence_message (
+ FOLKS_PRESENCE_OWNER (priv->persona), message);
}
}
@@ -965,7 +965,10 @@ empathy_contact_get_presence_message (EmpathyContact *contact)
priv = GET_PRIV (contact);
if (priv->persona != NULL)
- return folks_presence_get_presence_message (FOLKS_PRESENCE (priv->persona));
+ {
+ return folks_presence_owner_get_presence_message (
+ FOLKS_PRESENCE_OWNER (priv->persona));
+ }
if (priv->tp_contact != NULL)
return tp_contact_get_presence_message (priv->tp_contact);
@@ -1743,15 +1746,16 @@ static int
presence_cmp_func (EmpathyContact *a,
EmpathyContact *b)
{
- FolksPresence *presence_a, *presence_b;
+ FolksPresenceOwner *presence_a, *presence_b;
- presence_a = FOLKS_PRESENCE (empathy_contact_get_persona (a));
- presence_b = FOLKS_PRESENCE (empathy_contact_get_persona (b));
+ presence_a = FOLKS_PRESENCE_OWNER (empathy_contact_get_persona (a));
+ presence_b = FOLKS_PRESENCE_OWNER (empathy_contact_get_persona (b));
/* We negate the result because we're sorting in reverse order (i.e. such that
* the Personas with the highest presence are at the beginning of the list. */
- return -folks_presence_typecmp (folks_presence_get_presence_type (presence_a),
- folks_presence_get_presence_type (presence_b));
+ return -folks_presence_owner_typecmp (
+ folks_presence_owner_get_presence_type (presence_a),
+ folks_presence_owner_get_presence_type (presence_b));
}
static gint