aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/gossip-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-03 22:12:30 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-03 22:12:30 +0800
commit214850e492efd75f8664bbfb98c6dd6bf161aeb6 (patch)
treefb788b71ca6e6b801d9cd257a6b798287735e763 /libempathy/gossip-utils.c
parent563cdc5a284bc85957f60b14048ba6e42a0c7c87 (diff)
downloadgsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.gz
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.bz2
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.lz
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.xz
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.tar.zst
gsoc2013-empathy-214850e492efd75f8664bbfb98c6dd6bf161aeb6.zip
[darcs-to-svn @ Remove EmpathySession and move all programs into src/]
svn path=/trunk/; revision=28
Diffstat (limited to 'libempathy/gossip-utils.c')
-rw-r--r--libempathy/gossip-utils.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libempathy/gossip-utils.c b/libempathy/gossip-utils.c
index 3dc4afd48..668898712 100644
--- a/libempathy/gossip-utils.c
+++ b/libempathy/gossip-utils.c
@@ -38,7 +38,6 @@
#include "gossip-debug.h"
#include "gossip-utils.h"
#include "gossip-paths.h"
-#include "empathy-session.h"
#include "empathy-contact-manager.h"
#define DEBUG_DOMAIN "Utils"
@@ -437,12 +436,15 @@ gossip_get_own_contact_from_contact (GossipContact *contact)
{
EmpathyContactManager *manager;
McAccount *account;
+ GossipContact *own_contact;
g_return_val_if_fail (GOSSIP_IS_CONTACT (contact), NULL);
- manager = empathy_session_get_contact_manager ();
+ manager = empathy_contact_manager_new ();
account = gossip_contact_get_account (contact);
+ own_contact = empathy_contact_manager_get_own (manager, account);
+ g_object_unref (manager);
- return empathy_contact_manager_get_own (manager, account);
+ return own_contact;
}