From 8b10e78f1885104417d39041c506a3a5bfe985eb Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 16 Sep 2010 13:37:34 +0200 Subject: call-window-fullscreen: NULLify the video widget when it's destroyed --- src/empathy-call-window-fullscreen.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/empathy-call-window-fullscreen.c b/src/empathy-call-window-fullscreen.c index e1c3d7a39..75542e021 100644 --- a/src/empathy-call-window-fullscreen.c +++ b/src/empathy-call-window-fullscreen.c @@ -284,6 +284,15 @@ empathy_call_window_fullscreen_set_fullscreen (EmpathyCallWindowFullscreen *fs, fs->is_fullscreen = set_fullscreen; } +static void +video_widget_destroy_cb (GtkWidget *widget, + EmpathyCallWindowFullscreen *self) +{ + EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (self); + + priv->video_widget = NULL; +} + void empathy_call_window_fullscreen_set_video_widget ( EmpathyCallWindowFullscreen *fs, @@ -291,4 +300,7 @@ empathy_call_window_fullscreen_set_video_widget ( { EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs); priv->video_widget = video_widget; + + tp_g_signal_connect_object (video_widget, "destroy", + G_CALLBACK (video_widget_destroy_cb), fs, 0); } -- cgit v1.2.3