diff options
Diffstat (limited to 'libempathy/gossip-utils.c')
-rw-r--r-- | libempathy/gossip-utils.c | 16 |
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; +} + |