aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-av.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-29 16:23:42 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-29 17:36:09 +0800
commit9694c8d334037461fc11537920d0a01520a032e5 (patch)
treed98355f83c1b06dded02eaac3eef1d64fb017e08 /src/empathy-av.c
parent70821f0c74f2d441bc889110e56bbfa602863559 (diff)
downloadgsoc2013-empathy-9694c8d334037461fc11537920d0a01520a032e5.tar
gsoc2013-empathy-9694c8d334037461fc11537920d0a01520a032e5.tar.gz
gsoc2013-empathy-9694c8d334037461fc11537920d0a01520a032e5.tar.bz2
gsoc2013-empathy-9694c8d334037461fc11537920d0a01520a032e5.tar.lz
gsoc2013-empathy-9694c8d334037461fc11537920d0a01520a032e5.tar.xz
gsoc2013-empathy-9694c8d334037461fc11537920d0a01520a032e5.tar.zst
gsoc2013-empathy-9694c8d334037461fc11537920d0a01520a032e5.zip
add empathy_call_factory_register
So we can connect signal before registering the Handler.
Diffstat (limited to 'src/empathy-av.c')
-rw-r--r--src/empathy-av.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-av.c b/src/empathy-av.c
index b83d3525c..f86999cba 100644
--- a/src/empathy-av.c
+++ b/src/empathy-av.c
@@ -62,6 +62,7 @@ main (int argc,
TpDebugSender *debug_sender;
#endif
EmpathyCallFactory *call_factory;
+ GError *error = NULL;
/* Init */
g_thread_init (NULL);
@@ -99,6 +100,13 @@ main (int argc,
g_signal_connect (G_OBJECT (call_factory), "new-call-handler",
G_CALLBACK (new_call_handler_cb), NULL);
+ if (!empathy_call_factory_register (call_factory, &error))
+ {
+ g_critical ("Failed to register Handler: %s", error->message);
+ g_error_free (error);
+ return EXIT_FAILURE;
+ }
+
gtk_main ();
g_object_unref (call_factory);