aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
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 /libempathy-gtk
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 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-avatar-chooser.c2
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c2
-rw-r--r--libempathy-gtk/empathy-contact-widget.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-avatar-chooser.c b/libempathy-gtk/empathy-avatar-chooser.c
index 86df44953..5da81b936 100644
--- a/libempathy-gtk/empathy-avatar-chooser.c
+++ b/libempathy-gtk/empathy-avatar-chooser.c
@@ -213,7 +213,7 @@ empathy_avatar_chooser_init (EmpathyAvatarChooser *chooser)
G_CALLBACK (avatar_chooser_clicked_cb),
chooser);
- priv->contact_factory = empathy_contact_factory_new ();
+ priv->contact_factory = empathy_contact_factory_dup_singleton ();
empathy_avatar_chooser_set (chooser, NULL);
}
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 839a0df36..f9fbce92f 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -213,7 +213,7 @@ contact_list_view_drag_data_received (GtkWidget *widget,
id);
strv = g_strsplit (id, "/", 2);
- factory = empathy_contact_factory_new ();
+ factory = empathy_contact_factory_dup_singleton ();
account = mc_account_lookup (strv[0]);
if (account) {
contact = empathy_contact_factory_get_from_id (factory,
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 4100a6872..c8a21e858 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -162,7 +162,7 @@ empathy_contact_widget_new (EmpathyContact *contact,
information = g_slice_new0 (EmpathyContactWidget);
information->flags = flags;
- information->factory = empathy_contact_factory_new ();
+ information->factory = empathy_contact_factory_dup_singleton ();
filename = empathy_file_lookup ("empathy-contact-widget.glade",
"libempathy-gtk");