From b9e87dc7d7bf94ea2bd39dd675cf1806cf34bbe4 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 22 Mar 2010 14:34:38 +0100 Subject: src/empathy-call-window.c: use tp_g_signal_connect_object instead of empathy_signal_connect_weak --- src/empathy-call-window.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index ca814cbc2..8dc0d550f 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -651,9 +652,9 @@ create_audio_input (EmpathyCallWindow *self) gst_object_ref (priv->audio_input); gst_object_sink (priv->audio_input); - empathy_signal_connect_weak (priv->audio_input, "peak-level-changed", + tp_g_signal_connect_object (priv->audio_input, "peak-level-changed", G_CALLBACK (empathy_call_window_audio_input_level_changed_cb), - G_OBJECT (self)); + self, 0); } static void @@ -2162,7 +2163,7 @@ empathy_call_window_connected (gpointer user_data) tp_g_signal_connect_object (call, "notify::video-stream", G_CALLBACK (empathy_call_window_video_stream_changed_cb), - G_OBJECT (self), 0); + self, 0); if (empathy_tp_call_has_dtmf (call)) gtk_widget_set_sensitive (priv->dtmf_panel, TRUE); @@ -2492,10 +2493,10 @@ call_handler_notify_tp_call_cb (EmpathyCallHandler *handler, if (call == NULL) return; - empathy_signal_connect_weak (call, "audio-stream-error", - G_CALLBACK (empathy_call_window_audio_stream_error), G_OBJECT (self)); - empathy_signal_connect_weak (call, "video-stream-error", - G_CALLBACK (empathy_call_window_video_stream_error), G_OBJECT (self)); + tp_g_signal_connect_object (call, "audio-stream-error", + G_CALLBACK (empathy_call_window_audio_stream_error), self, 0); + tp_g_signal_connect_object (call, "video-stream-error", + G_CALLBACK (empathy_call_window_video_stream_error), self, 0); g_object_unref (call); } @@ -2522,10 +2523,12 @@ empathy_call_window_realized_cb (GtkWidget *widget, EmpathyCallWindow *window) g_object_get (priv->handler, "tp-call", &call, NULL); if (call != NULL) { - empathy_signal_connect_weak (call, "audio-stream-error", - G_CALLBACK (empathy_call_window_audio_stream_error), G_OBJECT (window)); - empathy_signal_connect_weak (call, "video-stream-error", - G_CALLBACK (empathy_call_window_video_stream_error), G_OBJECT (window)); + tp_g_signal_connect_object (call, "audio-stream-error", + G_CALLBACK (empathy_call_window_audio_stream_error), window, + 0); + tp_g_signal_connect_object (call, "video-stream-error", + G_CALLBACK (empathy_call_window_video_stream_error), window, + 0); g_object_unref (call); } -- cgit v1.2.3