aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-event-manager.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-06-26 21:49:13 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-01 21:19:40 +0800
commitdd54eb8205f1cd12267af127dab79297c0edc469 (patch)
tree3655199cf98837b6f46c45bf4aba813458a50077 /src/empathy-event-manager.c
parentf3d6fcb79762ff484c8b7221cec1079b0dad7fb7 (diff)
downloadgsoc2013-empathy-dd54eb8205f1cd12267af127dab79297c0edc469.tar
gsoc2013-empathy-dd54eb8205f1cd12267af127dab79297c0edc469.tar.gz
gsoc2013-empathy-dd54eb8205f1cd12267af127dab79297c0edc469.tar.bz2
gsoc2013-empathy-dd54eb8205f1cd12267af127dab79297c0edc469.tar.lz
gsoc2013-empathy-dd54eb8205f1cd12267af127dab79297c0edc469.tar.xz
gsoc2013-empathy-dd54eb8205f1cd12267af127dab79297c0edc469.tar.zst
gsoc2013-empathy-dd54eb8205f1cd12267af127dab79297c0edc469.zip
Port the main of empathy to EmpathyAccount
Diffstat (limited to 'src/empathy-event-manager.c')
-rw-r--r--src/empathy-event-manager.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index a80aad236..1a7ec09cb 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -914,19 +914,12 @@ event_manager_presence_changed_cb (EmpathyContactMonitor *monitor,
TpConnectionPresenceType previous,
EmpathyEventManager *manager)
{
- McAccount *account;
- gboolean just_connected;
- EmpathyAccountManager *account_manager;
+ EmpathyAccount *account;
gchar *header = NULL;
gboolean preference = FALSE;
account = empathy_contact_get_account (contact);
- account_manager = empathy_account_manager_dup_singleton ();
- just_connected = empathy_account_manager_is_account_just_connected (
- account_manager, account);
-
- g_object_unref (account_manager);
- if (just_connected)
+ if (empathy_account_is_just_connected (account))
return;
if (tp_connection_presence_type_cmp_availability (previous,