aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-contact-factory.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-05-26 17:34:06 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-05-26 17:34:06 +0800
commitea03354dacd0da472875bb64d0f2d8c124f3193b (patch)
tree8e0f1d852609ec5a33b5e69f64a8fbb6a61b076a /libempathy/empathy-tp-contact-factory.c
parent986064a03ac759da8e87d085b8941444c8b57c5a (diff)
downloadgsoc2013-empathy-ea03354dacd0da472875bb64d0f2d8c124f3193b.tar
gsoc2013-empathy-ea03354dacd0da472875bb64d0f2d8c124f3193b.tar.gz
gsoc2013-empathy-ea03354dacd0da472875bb64d0f2d8c124f3193b.tar.bz2
gsoc2013-empathy-ea03354dacd0da472875bb64d0f2d8c124f3193b.tar.lz
gsoc2013-empathy-ea03354dacd0da472875bb64d0f2d8c124f3193b.tar.xz
gsoc2013-empathy-ea03354dacd0da472875bb64d0f2d8c124f3193b.tar.zst
gsoc2013-empathy-ea03354dacd0da472875bb64d0f2d8c124f3193b.zip
Move empathy_tp_contact_factory_set_alias() to EmpathyContact
Diffstat (limited to 'libempathy/empathy-tp-contact-factory.c')
-rw-r--r--libempathy/empathy-tp-contact-factory.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index d2fbcf7d9..a8afecf6b 100644
--- a/libempathy/empathy-tp-contact-factory.c
+++ b/libempathy/empathy-tp-contact-factory.c
@@ -345,49 +345,3 @@ empathy_tp_contact_factory_get_from_handle (TpConnection *connection,
weak_object);
}
-static void
-tp_contact_factory_set_aliases_cb (TpConnection *connection,
- const GError *error,
- gpointer user_data,
- GObject *tp_factory)
-{
- if (error) {
- DEBUG ("Error: %s", error->message);
- }
-}
-
-void
-empathy_tp_contact_factory_set_alias (EmpathyContact *contact,
- const gchar *alias)
-{
- TpConnection *connection;
- GHashTable *new_alias;
- guint handle;
-
- g_return_if_fail (EMPATHY_IS_CONTACT (contact));
-
- handle = empathy_contact_get_handle (contact);
-
- DEBUG ("Setting alias for contact %s (%d) to %s",
- empathy_contact_get_id (contact),
- handle, alias);
-
- new_alias = g_hash_table_new_full (g_direct_hash,
- g_direct_equal,
- NULL,
- g_free);
-
- g_hash_table_insert (new_alias,
- GUINT_TO_POINTER (handle),
- g_strdup (alias));
-
- connection = empathy_contact_get_connection (contact);
- tp_cli_connection_interface_aliasing_call_set_aliases (connection,
- -1,
- new_alias,
- tp_contact_factory_set_aliases_cb,
- NULL, NULL, NULL);
-
- g_hash_table_destroy (new_alias);
-}
-