aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:05:54 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:05:54 +0800
commit4100a5f538bf8f2c22658a579a80c909162dc46c (patch)
treeb401ae53129b4dd1c2847fcac86cc01565dc2006 /src
parent2f6103a3cf15d278fc95929e72ed5652a103c058 (diff)
downloadgsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.tar
gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.tar.gz
gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.tar.bz2
gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.tar.lz
gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.tar.xz
gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.tar.zst
gsoc2013-empathy-4100a5f538bf8f2c22658a579a80c909162dc46c.zip
Port EmpathyContactFactory to the new singleton policy.
svn path=/trunk/; revision=2113
Diffstat (limited to 'src')
-rw-r--r--src/empathy-event-manager.c2
-rw-r--r--src/empathy-main-window.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 4b5cfc505..f192b9731 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -223,7 +223,7 @@ event_manager_filter_channel_cb (EmpathyDispatcher *dispatcher,
McAccount *account;
EmpathyContactFactory *factory;
- factory = empathy_contact_factory_new ();
+ factory = empathy_contact_factory_dup_singleton ();
handle = tp_channel_get_handle (channel, NULL);
account = empathy_channel_get_account (channel);
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index f034638e3..07c236f96 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1009,7 +1009,7 @@ main_window_edit_personal_information_cb (GtkWidget *widget,
McAccount *account;
account = accounts->data;
- factory = empathy_contact_factory_new ();
+ factory = empathy_contact_factory_dup_singleton ();
contact = empathy_contact_factory_get_user (factory, account);
empathy_contact_run_until_ready (contact,
EMPATHY_CONTACT_READY_HANDLE |