aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-call.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-22 17:20:32 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-22 17:59:33 +0800
commit57459c6892de159e92a90231e8c10e63c566ac32 (patch)
tree69ee3647e5519aa5efd51205503160c59d133ae4 /libempathy/empathy-tp-call.c
parent066f1c90a7e6461ccb8ea11a2f511604abbd2472 (diff)
downloadgsoc2013-empathy-57459c6892de159e92a90231e8c10e63c566ac32.tar
gsoc2013-empathy-57459c6892de159e92a90231e8c10e63c566ac32.tar.gz
gsoc2013-empathy-57459c6892de159e92a90231e8c10e63c566ac32.tar.bz2
gsoc2013-empathy-57459c6892de159e92a90231e8c10e63c566ac32.tar.lz
gsoc2013-empathy-57459c6892de159e92a90231e8c10e63c566ac32.tar.xz
gsoc2013-empathy-57459c6892de159e92a90231e8c10e63c566ac32.tar.zst
gsoc2013-empathy-57459c6892de159e92a90231e8c10e63c566ac32.zip
tp-call: use tp_g_signal_connect_object to connect signal on the channel
This ensure that the cb won't be called after the TpCall has been destroyed.
Diffstat (limited to 'libempathy/empathy-tp-call.c')
-rw-r--r--libempathy/empathy-tp-call.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index 9758f500b..dfaf3384b 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -25,6 +25,7 @@
#include <telepathy-glib/proxy-subclass.h>
#include <telepathy-glib/dbus.h>
#include <telepathy-glib/interfaces.h>
+#include <telepathy-glib/util.h>
#include "empathy-tp-call.h"
#include "empathy-tp-contact-factory.h"
@@ -436,8 +437,8 @@ tp_call_constructor (GType type,
/* Update status when members changes */
tp_call_update_status (call);
- g_signal_connect_swapped (priv->channel, "group-members-changed",
- G_CALLBACK (tp_call_update_status), call);
+ tp_g_signal_connect_object (priv->channel, "group-members-changed",
+ G_CALLBACK (tp_call_update_status), call, G_CONNECT_SWAPPED);
return object;
}