aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:06:00 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:06:00 +0800
commitc2a1dec002eb9a8c0372bc6fc920a54e36b7e991 (patch)
treeeab79909cfb1550b494c5a81056301bbf2698204 /src
parent4100a5f538bf8f2c22658a579a80c909162dc46c (diff)
downloadgsoc2013-empathy-c2a1dec002eb9a8c0372bc6fc920a54e36b7e991.tar
gsoc2013-empathy-c2a1dec002eb9a8c0372bc6fc920a54e36b7e991.tar.gz
gsoc2013-empathy-c2a1dec002eb9a8c0372bc6fc920a54e36b7e991.tar.bz2
gsoc2013-empathy-c2a1dec002eb9a8c0372bc6fc920a54e36b7e991.tar.lz
gsoc2013-empathy-c2a1dec002eb9a8c0372bc6fc920a54e36b7e991.tar.xz
gsoc2013-empathy-c2a1dec002eb9a8c0372bc6fc920a54e36b7e991.tar.zst
gsoc2013-empathy-c2a1dec002eb9a8c0372bc6fc920a54e36b7e991.zip
Port EmpathyIdle to the new singleton policy.
svn path=/trunk/; revision=2114
Diffstat (limited to 'src')
-rw-r--r--src/empathy-status-icon.c4
-rw-r--r--src/empathy.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 07fc3aa02..86fe27a4f 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -396,8 +396,8 @@ empathy_status_icon_init (EmpathyStatusIcon *icon)
icon->priv = priv;
priv->icon = gtk_status_icon_new ();
priv->account_manager = empathy_account_manager_dup_singleton ();
- priv->idle = empathy_idle_new ();
- priv->event_manager = empathy_event_manager_new ();
+ priv->idle = empathy_idle_dup_singleton ();
+ priv->event_manager = empathy_event_manager_dup_singleton ();
g_signal_connect (priv->account_manager,
"account-connection-changed",
diff --git a/src/empathy.c b/src/empathy.c
index 815b2b487..e449247ac 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -473,7 +473,7 @@ main (int argc, char *argv[])
}
/* Setting up Idle */
- idle = empathy_idle_new ();
+ idle = empathy_idle_dup_singleton ();
empathy_idle_set_auto_away (idle, TRUE);
use_nm_notify_cb (empathy_conf_get (), EMPATHY_PREFS_USE_NM, idle);
empathy_conf_notify_add (empathy_conf_get (), EMPATHY_PREFS_USE_NM,