aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-28 17:17:10 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-28 17:17:10 +0800
commitf2f49d58f04cd06ac73015ca763aa1b17c74b89a (patch)
treec3c7b53bd2cda245252e21f8ee7b3dca0fd0c322 /src
parent4f8ad828afebbacef6d7d3560067976e4fc6f90a (diff)
downloadgsoc2013-empathy-f2f49d58f04cd06ac73015ca763aa1b17c74b89a.tar
gsoc2013-empathy-f2f49d58f04cd06ac73015ca763aa1b17c74b89a.tar.gz
gsoc2013-empathy-f2f49d58f04cd06ac73015ca763aa1b17c74b89a.tar.bz2
gsoc2013-empathy-f2f49d58f04cd06ac73015ca763aa1b17c74b89a.tar.lz
gsoc2013-empathy-f2f49d58f04cd06ac73015ca763aa1b17c74b89a.tar.xz
gsoc2013-empathy-f2f49d58f04cd06ac73015ca763aa1b17c74b89a.tar.zst
gsoc2013-empathy-f2f49d58f04cd06ac73015ca763aa1b17c74b89a.zip
CallWindow: use tp_g_signal_connect_object
So the signals are disconnected when the window is destroyed.
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 3bd6d746d..1c2f69933 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1291,13 +1291,12 @@ empathy_call_window_setup_avatars (EmpathyCallWindow *self,
{
EmpathyCallWindowPriv *priv = GET_PRIV (self);
- g_signal_connect (priv->contact, "notify::name",
- G_CALLBACK (contact_name_changed_cb), self);
- g_signal_connect (priv->contact, "notify::avatar",
- G_CALLBACK (contact_avatar_changed_cb), self);
- /* FIXME: There's no EmpathyContact::presence yet */
- g_signal_connect (priv->contact, "notify::presence",
- G_CALLBACK (contact_presence_changed_cb), self);
+ tp_g_signal_connect_object (priv->contact, "notify::name",
+ G_CALLBACK (contact_name_changed_cb), self, 0);
+ tp_g_signal_connect_object (priv->contact, "notify::avatar",
+ G_CALLBACK (contact_avatar_changed_cb), self, 0);
+ tp_g_signal_connect_object (priv->contact, "notify::presence",
+ G_CALLBACK (contact_presence_changed_cb), self, 0);
set_window_title (self);
set_remote_user_name (self, priv->contact);