aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-16 17:11:26 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-16 17:24:59 +0800
commitcb2741bee8b6808953a6afeea90114f123a47982 (patch)
treee1b0df9a14caf29e7047ec403db51d0752533895 /libempathy
parent15761dfafa40dce3e5acb2f9fecc5b808fa11e47 (diff)
downloadgsoc2013-empathy-cb2741bee8b6808953a6afeea90114f123a47982.tar
gsoc2013-empathy-cb2741bee8b6808953a6afeea90114f123a47982.tar.gz
gsoc2013-empathy-cb2741bee8b6808953a6afeea90114f123a47982.tar.bz2
gsoc2013-empathy-cb2741bee8b6808953a6afeea90114f123a47982.tar.lz
gsoc2013-empathy-cb2741bee8b6808953a6afeea90114f123a47982.tar.xz
gsoc2013-empathy-cb2741bee8b6808953a6afeea90114f123a47982.tar.zst
gsoc2013-empathy-cb2741bee8b6808953a6afeea90114f123a47982.zip
depends on folks 0.4.0
This is based on Travis's commits from master.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c37
-rw-r--r--libempathy/empathy-individual-manager.c14
-rw-r--r--libempathy/empathy-utils.c2
-rw-r--r--libempathy/empathy-utils.h2
4 files changed, 28 insertions, 27 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 99ec63f17..3706658fa 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -485,8 +485,8 @@ empathy_contact_set_presence_message (EmpathyContact *contact,
if (priv->persona != NULL)
{
- folks_presence_owner_set_presence_message (
- FOLKS_PRESENCE_OWNER (priv->persona), message);
+ folks_presence_details_set_presence_message (
+ FOLKS_PRESENCE_DETAILS (priv->persona), message);
}
}
@@ -704,12 +704,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_ALIASABLE (persona))
+ if (persona != NULL && FOLKS_IS_ALIAS_DETAILS (persona))
{
DEBUG ("Setting alias for contact %s to %s",
empathy_contact_get_id (contact), alias);
- folks_aliasable_set_alias (FOLKS_ALIASABLE (persona), alias);
+ folks_alias_details_set_alias (FOLKS_ALIAS_DETAILS (persona), alias);
}
if (tp_strdiff (alias, priv->alias))
@@ -727,10 +727,10 @@ groups_change_group_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
- FolksGroupable *groupable = FOLKS_GROUPABLE (source);
+ FolksGroupDetails *group_details = FOLKS_GROUP_DETAILS (source);
GError *error = NULL;
- folks_groupable_change_group_finish (groupable, result, &error);
+ folks_group_details_change_group_finish (group_details, result, &error);
if (error != NULL)
{
g_warning ("failed to change group: %s", error->message);
@@ -754,9 +754,9 @@ empathy_contact_change_group (EmpathyContact *contact, const gchar *group,
persona = empathy_contact_get_persona (contact);
if (persona != NULL)
{
- if (FOLKS_IS_GROUPABLE (persona))
- folks_groupable_change_group (FOLKS_GROUPABLE (persona), group, is_member,
- groups_change_group_cb, contact);
+ if (FOLKS_IS_GROUP_DETAILS (persona))
+ folks_group_details_change_group (FOLKS_GROUP_DETAILS (persona), group,
+ is_member, groups_change_group_cb, contact);
return;
}
@@ -919,7 +919,8 @@ empathy_contact_set_persona (EmpathyContact *contact,
/* Set the persona's groups */
if (priv->groups != NULL)
{
- folks_groupable_set_groups (FOLKS_GROUPABLE (persona), priv->groups);
+ folks_group_details_set_groups (FOLKS_GROUP_DETAILS (persona),
+ priv->groups);
g_hash_table_destroy (priv->groups);
priv->groups = NULL;
}
@@ -967,8 +968,8 @@ empathy_contact_get_presence_message (EmpathyContact *contact)
if (priv->persona != NULL)
{
- return folks_presence_owner_get_presence_message (
- FOLKS_PRESENCE_OWNER (priv->persona));
+ return folks_presence_details_get_presence_message (
+ FOLKS_PRESENCE_DETAILS (priv->persona));
}
if (priv->tp_contact != NULL)
@@ -1775,16 +1776,16 @@ static int
presence_cmp_func (EmpathyContact *a,
EmpathyContact *b)
{
- FolksPresenceOwner *presence_a, *presence_b;
+ FolksPresenceDetails *presence_a, *presence_b;
- presence_a = FOLKS_PRESENCE_OWNER (empathy_contact_get_persona (a));
- presence_b = FOLKS_PRESENCE_OWNER (empathy_contact_get_persona (b));
+ presence_a = FOLKS_PRESENCE_DETAILS (empathy_contact_get_persona (a));
+ presence_b = FOLKS_PRESENCE_DETAILS (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_owner_typecmp (
- folks_presence_owner_get_presence_type (presence_a),
- folks_presence_owner_get_presence_type (presence_b));
+ return -folks_presence_details_typecmp (
+ folks_presence_details_get_presence_type (presence_a),
+ folks_presence_details_get_presence_type (presence_b));
}
static gint
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index a8cc41297..7ae1a9004 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -86,8 +86,8 @@ individual_notify_is_favourite_cb (FolksIndividual *individual,
GParamSpec *pspec,
EmpathyIndividualManager *self)
{
- gboolean is_favourite = folks_favouritable_get_is_favourite (
- FOLKS_FAVOURITABLE (individual));
+ gboolean is_favourite = folks_favourite_details_get_is_favourite (
+ FOLKS_FAVOURITE_DETAILS (individual));
g_signal_emit (self, signals[FAVOURITES_CHANGED], 0, individual,
is_favourite);
}
@@ -483,7 +483,7 @@ empathy_individual_manager_remove (EmpathyIndividualManager *self,
DEBUG ("removing individual %s (%s)",
folks_individual_get_id (individual),
- folks_aliasable_get_alias (FOLKS_ALIASABLE (individual)));
+ folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (individual)));
folks_individual_aggregator_remove_individual (priv->aggregator, individual,
aggregator_remove_individual_cb, self);
@@ -568,10 +568,10 @@ groups_change_group_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
- FolksGroupable *groupable = FOLKS_GROUPABLE (source);
+ FolksGroupDetails *group_details = FOLKS_GROUP_DETAILS (source);
GError *error = NULL;
- folks_groupable_change_group_finish (groupable, result, &error);
+ folks_group_details_change_group_finish (group_details, result, &error);
if (error != NULL)
{
g_warning ("failed to change group: %s", error->message);
@@ -584,8 +584,8 @@ remove_group_cb (const gchar *id,
FolksIndividual *individual,
const gchar *group)
{
- folks_groupable_change_group (FOLKS_GROUPABLE (individual), group, FALSE,
- groups_change_group_cb, NULL);
+ folks_group_details_change_group (FOLKS_GROUP_DETAILS (individual), group,
+ FALSE, groups_change_group_cb, NULL);
}
void
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 486dbbfdd..bd150dac9 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -740,7 +740,7 @@ empathy_contact_dup_from_folks_individual (FolksIndividual *individual)
TpChannelGroupChangeReason
tp_channel_group_change_reason_from_folks_groups_change_reason (
- FolksGroupableChangeReason reason)
+ FolksGroupDetailsChangeReason reason)
{
return (TpChannelGroupChangeReason) reason;
}
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index 00525aa06..2ddfb4c53 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 (FolksGroupableChangeReason reason);
+TpChannelGroupChangeReason tp_channel_group_change_reason_from_folks_groups_change_reason (FolksGroupDetailsChangeReason reason);
gboolean empathy_folks_persona_is_interesting (FolksPersona *persona);
gchar * empathy_get_x509_certificate_hostname (gnutls_x509_crt_t cert);