aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/gossip-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-13 02:04:01 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-13 02:04:01 +0800
commit321de615c0d7aaecf7f87b31fae65b5b75f0e32e (patch)
tree25d012f82bb5b54e5e06a0b51de1722314c67f2a /libempathy/gossip-utils.c
parent104362fe34c3881f6956844de2a0403f0ea1b3d0 (diff)
downloadgsoc2013-empathy-321de615c0d7aaecf7f87b31fae65b5b75f0e32e.tar
gsoc2013-empathy-321de615c0d7aaecf7f87b31fae65b5b75f0e32e.tar.gz
gsoc2013-empathy-321de615c0d7aaecf7f87b31fae65b5b75f0e32e.tar.bz2
gsoc2013-empathy-321de615c0d7aaecf7f87b31fae65b5b75f0e32e.tar.lz
gsoc2013-empathy-321de615c0d7aaecf7f87b31fae65b5b75f0e32e.tar.xz
gsoc2013-empathy-321de615c0d7aaecf7f87b31fae65b5b75f0e32e.tar.zst
gsoc2013-empathy-321de615c0d7aaecf7f87b31fae65b5b75f0e32e.zip
[darcs-to-svn @ gossip_mission_control_new() returns a MissionControl sigleton object and update throbber state when there is connecting accounts]
svn path=/trunk/; revision=47
Diffstat (limited to 'libempathy/gossip-utils.c')
-rw-r--r--libempathy/gossip-utils.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libempathy/gossip-utils.c b/libempathy/gossip-utils.c
index 668898712..b8cc59ab7 100644
--- a/libempathy/gossip-utils.c
+++ b/libempathy/gossip-utils.c
@@ -34,6 +34,7 @@
#include <libxml/uri.h>
#include <libmissioncontrol/mc-account.h>
+#include <libtelepathy/tp-helpers.h>
#include "gossip-debug.h"
#include "gossip-utils.h"
@@ -448,3 +449,18 @@ gossip_get_own_contact_from_contact (GossipContact *contact)
return own_contact;
}
+MissionControl *
+gossip_mission_control_new (void)
+{
+ static MissionControl *mc = NULL;
+
+ if (!mc) {
+ mc = mission_control_new (tp_get_bus ());
+ g_object_add_weak_pointer (G_OBJECT (mc), (gpointer) &mc);
+ } else {
+ g_object_ref (mc);
+ }
+
+ return mc;
+}
+