diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-05-10 18:36:28 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-05-26 17:17:47 +0800 |
commit | b8ff75d21c1be60e6df472a35599a9e22046a92b (patch) | |
tree | fcaa7453e65ac310e4a3c0f854bcb8b588722863 /libempathy/empathy-tp-contact-list.c | |
parent | 696bd076bbd431aad122c66cadfb6ec3f5ff1762 (diff) | |
download | gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.gz gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.bz2 gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.lz gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.xz gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.zst gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.zip |
Port to new EmpathyTpContactFactory API
Diffstat (limited to 'libempathy/empathy-tp-contact-list.c')
-rw-r--r-- | libempathy/empathy-tp-contact-list.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c index f8d897185..a77bb10b4 100644 --- a/libempathy/empathy-tp-contact-list.c +++ b/libempathy/empathy-tp-contact-list.c @@ -41,7 +41,6 @@ #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyTpContactList) typedef struct { - EmpathyTpContactFactory *factory; TpConnection *connection; TpChannel *publish; @@ -372,7 +371,7 @@ tp_contact_list_group_add (EmpathyTpContactList *list, } static void -got_added_members_cb (EmpathyTpContactFactory *factory, +got_added_members_cb (TpConnection *connection, guint n_contacts, EmpathyContact * const * contacts, guint n_failed, @@ -427,7 +426,7 @@ add_to_members (EmpathyTpContactList *list, } if (request->len > 0) { - empathy_tp_contact_factory_get_from_handles (priv->factory, + empathy_tp_contact_factory_get_from_handles (priv->connection, request->len, (TpHandle *) request->data, got_added_members_cb, NULL, NULL, G_OBJECT (list)); } @@ -436,7 +435,7 @@ add_to_members (EmpathyTpContactList *list, } static void -tp_contact_list_got_local_pending_cb (EmpathyTpContactFactory *factory, +tp_contact_list_got_local_pending_cb (TpConnection *connection, guint n_contacts, EmpathyContact * const * contacts, guint n_failed, @@ -562,7 +561,7 @@ tp_contact_list_publish_group_members_changed_cb (TpChannel *channel, /* Those contacts want our presence, auto accept those that are already * member, otherwise add in pendings. */ if (local_pending->len > 0) { - empathy_tp_contact_factory_get_from_handles (priv->factory, + empathy_tp_contact_factory_get_from_handles (priv->connection, local_pending->len, (TpHandle *) local_pending->data, tp_contact_list_got_local_pending_cb, NULL, NULL, G_OBJECT (list)); @@ -726,10 +725,6 @@ tp_contact_list_finalize (GObject *object) g_object_unref (priv->connection); } - if (priv->factory) { - g_object_unref (priv->factory); - } - g_hash_table_iter_init (&iter, priv->groups); while (g_hash_table_iter_next (&iter, NULL, &channel)) { g_signal_handlers_disconnect_by_func (channel, @@ -920,8 +915,6 @@ tp_contact_list_constructed (GObject *list) { EmpathyTpContactListPriv *priv = GET_PRIV (list); - priv->factory = empathy_tp_contact_factory_dup_singleton (priv->connection); - /* call GetAliasFlags */ if (tp_proxy_has_interface_by_id (priv->connection, TP_IFACE_QUARK_CONNECTION_INTERFACE_ALIASING)) { |