diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-09 18:05:54 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-09 18:05:54 +0800 |
commit | 4100a5f538bf8f2c22658a579a80c909162dc46c (patch) | |
tree | b401ae53129b4dd1c2847fcac86cc01565dc2006 /libempathy/empathy-dispatcher.c | |
parent | 2f6103a3cf15d278fc95929e72ed5652a103c058 (diff) | |
download | gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.tar.gz gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.tar.zst gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.zip |
Port EmpathyContactFactory to the new singleton policy.
svn path=/trunk/; revision=2113
Diffstat (limited to 'libempathy/empathy-dispatcher.c')
-rw-r--r-- | libempathy/empathy-dispatcher.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index 29345e0a3..aaac433c9 100644 --- a/libempathy/empathy-dispatcher.c +++ b/libempathy/empathy-dispatcher.c @@ -235,7 +235,7 @@ dispatcher_tubes_new_tube_cb (TpChannel *channel, tube = g_slice_new (DispatcherTube); tube->ref_count = 1; tube->handled = FALSE; - tube->factory = empathy_contact_factory_new (); + tube->factory = empathy_contact_factory_dup_singleton (); tube->bus_name = empathy_tube_handler_build_bus_name (type, service); tube->object_path = empathy_tube_handler_build_object_path (type, service); tube->public.activatable = FALSE; @@ -850,7 +850,7 @@ empathy_dispatcher_call_with_contact (EmpathyContact *contact) group = empathy_tp_group_new (channel); empathy_run_until_ready (group); - factory = empathy_contact_factory_new (); + factory = empathy_contact_factory_dup_singleton (); self_contact = empathy_contact_factory_get_user (factory, account); empathy_contact_run_until_ready (self_contact, EMPATHY_CONTACT_READY_HANDLE, @@ -873,7 +873,7 @@ empathy_dispatcher_call_with_contact_id (McAccount *account, const gchar *contac EmpathyContactFactory *factory; EmpathyContact *contact; - factory = empathy_contact_factory_new (); + factory = empathy_contact_factory_dup_singleton (); contact = empathy_contact_factory_get_from_id (factory, account, contact_id); empathy_contact_run_until_ready (contact, EMPATHY_CONTACT_READY_HANDLE, NULL); @@ -922,7 +922,7 @@ empathy_dispatcher_chat_with_contact_id (McAccount *account, EmpathyContactFactory *factory; EmpathyContact *contact; - factory = empathy_contact_factory_new (); + factory = empathy_contact_factory_dup_singleton (); contact = empathy_contact_factory_get_from_id (factory, account, contact_id); empathy_contact_run_until_ready (contact, EMPATHY_CONTACT_READY_HANDLE, NULL); |