aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-tp-call.c2
-rw-r--r--libempathy/empathy-utils.c8
-rw-r--r--libempathy/empathy-utils.h1
-rw-r--r--src/empathy.c2
4 files changed, 11 insertions, 2 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index 6c90f49d8..7703aeffb 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -589,8 +589,6 @@ empathy_tp_call_class_init (EmpathyTpCallClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- emp_cli_init ();
-
object_class->constructor = tp_call_constructor;
object_class->finalize = tp_call_finalize;
object_class->set_property = tp_call_set_property;
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index b5bdb9ff7..934fc9e2c 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -37,6 +37,8 @@
#include <telepathy-glib/channel.h>
#include <telepathy-glib/dbus.h>
+#include <extensions/extensions.h>
+
#include "empathy-utils.h"
#include "empathy-contact-factory.h"
#include "empathy-contact-manager.h"
@@ -774,3 +776,9 @@ empathy_connection_request_channel (TpConnection *connection,
weak_object);
}
+void
+empathy_init (void)
+{
+ emp_cli_init ();
+}
+
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index a320c6246..afde4d3a7 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -122,6 +122,7 @@ void empathy_connection_request_channel (TpConnection *proxy,
gpointer user_data,
GDestroyNotify destroy,
GObject *weak_object);
+void empathy_init (void);
G_END_DECLS
diff --git a/src/empathy.c b/src/empathy.c
index 15781d929..9bc98ff11 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -449,6 +449,8 @@ main (int argc, char *argv[])
g_warning ("Cannot create the 'empathy' bacon connection.");
}
+ empathy_init ();
+
/* Setting up MC */
mc = empathy_mission_control_new ();
g_signal_connect (mc, "ServiceEnded",