[empathy] use tp_g_signal_connect_object to connect the "closed" signal on the notification



commit c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jun 16 16:39:43 2010 +0200

    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).

 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 7407ee3..8a0502b 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]