diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-06-16 22:39:43 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-06-16 22:39:43 +0800 |
commit | c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c (patch) | |
tree | a45f5243779d7df946c05f852c111d7cf029b943 /src | |
parent | eb7d0f7647e16dff399ca6cc77e4971ff437a56a (diff) | |
download | gsoc2013-empathy-c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c.tar gsoc2013-empathy-c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c.tar.gz gsoc2013-empathy-c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c.tar.bz2 gsoc2013-empathy-c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c.tar.lz gsoc2013-empathy-c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c.tar.xz gsoc2013-empathy-c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c.tar.zst gsoc2013-empathy-c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c.zip |
use tp_g_signal_connect_object to connect the "closed" signal on the notification
This fix a crash if the chat window is destroyed while the notification is
still displayed (#621789).
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-chat-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 7407ee355..8a0502b26 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -1299,8 +1299,8 @@ chat_window_show_or_update_notification (EmpathyChatWindow *window, notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT); - g_signal_connect (notification, "closed", - G_CALLBACK (chat_window_notification_closed_cb), window); + tp_g_signal_connect_object (notification, "closed", + G_CALLBACK (chat_window_notification_closed_cb), window, 0); if (has_x_canonical_append) { notify_notification_set_hint_string (notification, |