aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-09-15 22:23:14 +0800
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-02-02 03:50:11 +0800
commit6e09b2b2639253549f890702cb811c10cc0d5167 (patch)
tree022d3ba62519ab8a95e5b61ee07dd32e77d6357f /libempathy
parentbf97e2a3a2a557e7c68ff6e7d1eabbfdc04799e3 (diff)
downloadgsoc2013-empathy-6e09b2b2639253549f890702cb811c10cc0d5167.tar
gsoc2013-empathy-6e09b2b2639253549f890702cb811c10cc0d5167.tar.gz
gsoc2013-empathy-6e09b2b2639253549f890702cb811c10cc0d5167.tar.bz2
gsoc2013-empathy-6e09b2b2639253549f890702cb811c10cc0d5167.tar.lz
gsoc2013-empathy-6e09b2b2639253549f890702cb811c10cc0d5167.tar.xz
gsoc2013-empathy-6e09b2b2639253549f890702cb811c10cc0d5167.tar.zst
gsoc2013-empathy-6e09b2b2639253549f890702cb811c10cc0d5167.zip
Port Empathy to use FolksAliasable and FolksGroupable
FolksAliasable is the new name for FolksAlias, and FolksGroupable is the new name for FolksGroups.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c14
-rw-r--r--libempathy/empathy-individual-manager.c6
-rw-r--r--libempathy/empathy-utils.c2
-rw-r--r--libempathy/empathy-utils.h2
4 files changed, 12 insertions, 12 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 1e44a62da..e7b5bd507 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -703,12 +703,12 @@ empathy_contact_set_alias (EmpathyContact *contact,
/* Set the alias on the persona if possible */
persona = empathy_contact_get_persona (contact);
- if (persona != NULL && FOLKS_IS_ALIAS (persona))
+ if (persona != NULL && FOLKS_IS_ALIASABLE (persona))
{
DEBUG ("Setting alias for contact %s to %s",
empathy_contact_get_id (contact), alias);
- folks_alias_set_alias (FOLKS_ALIAS (persona), alias);
+ folks_aliasable_set_alias (FOLKS_ALIASABLE (persona), alias);
}
if (tp_strdiff (alias, priv->alias))
@@ -726,10 +726,10 @@ groups_change_group_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
- FolksGroups *groups = FOLKS_GROUPS (source);
+ FolksGroupable *groupable = FOLKS_GROUPABLE (source);
GError *error = NULL;
- folks_groups_change_group_finish (groups, result, &error);
+ folks_groupable_change_group_finish (groupable, result, &error);
if (error != NULL)
{
g_warning ("failed to change group: %s", error->message);
@@ -753,8 +753,8 @@ empathy_contact_change_group (EmpathyContact *contact, const gchar *group,
persona = empathy_contact_get_persona (contact);
if (persona != NULL)
{
- if (FOLKS_IS_GROUPS (persona))
- folks_groups_change_group (FOLKS_GROUPS (persona), group, is_member,
+ if (FOLKS_IS_GROUPABLE (persona))
+ folks_groupable_change_group (FOLKS_GROUPABLE (persona), group, is_member,
groups_change_group_cb, contact);
return;
}
@@ -918,7 +918,7 @@ empathy_contact_set_persona (EmpathyContact *contact,
/* Set the persona's groups */
if (priv->groups != NULL)
{
- folks_groups_set_groups (FOLKS_GROUPS (persona), priv->groups);
+ folks_groupable_set_groups (FOLKS_GROUPABLE (persona), priv->groups);
g_hash_table_destroy (priv->groups);
priv->groups = NULL;
}
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index 968ff1c98..d707e17bf 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -464,10 +464,10 @@ groups_change_group_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
- FolksGroups *groups = FOLKS_GROUPS (source);
+ FolksGroupable *groupable = FOLKS_GROUPABLE (source);
GError *error = NULL;
- folks_groups_change_group_finish (groups, result, &error);
+ folks_groupable_change_group_finish (groupable, result, &error);
if (error != NULL)
{
g_warning ("failed to change group: %s", error->message);
@@ -480,7 +480,7 @@ remove_group_cb (const gchar *id,
FolksIndividual *individual,
const gchar *group)
{
- folks_groups_change_group (FOLKS_GROUPS (individual), group, FALSE,
+ folks_groupable_change_group (FOLKS_GROUPABLE (individual), group, FALSE,
groups_change_group_cb, NULL);
}
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 85953f8f9..6f9e2564a 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -739,7 +739,7 @@ empathy_contact_dup_from_folks_individual (FolksIndividual *individual)
TpChannelGroupChangeReason
tp_channel_group_change_reason_from_folks_groups_change_reason (
- FolksGroupsChangeReason reason)
+ FolksGroupableChangeReason reason)
{
return (TpChannelGroupChangeReason) reason;
}
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index 6a67321d9..70e8fb461 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -97,7 +97,7 @@ void empathy_connect_new_account (TpAccount *account,
TpConnectionPresenceType empathy_folks_presence_type_to_tp (FolksPresenceType type);
gboolean empathy_folks_individual_contains_contact (FolksIndividual *individual);
EmpathyContact * empathy_contact_dup_from_folks_individual (FolksIndividual *individual);
-TpChannelGroupChangeReason tp_channel_group_change_reason_from_folks_groups_change_reason (FolksGroupsChangeReason reason);
+TpChannelGroupChangeReason tp_channel_group_change_reason_from_folks_groups_change_reason (FolksGroupableChangeReason reason);
gchar * empathy_get_x509_certificate_hostname (gnutls_x509_crt_t cert);