aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window-fullscreen.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-16 19:37:34 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-27 21:28:48 +0800
commit8b10e78f1885104417d39041c506a3a5bfe985eb (patch)
treecdb14fe44749e9436117be9945fa03e9de33d7e8 /src/empathy-call-window-fullscreen.c
parent49918153e194f92b63049bf4bb93f13edfff7720 (diff)
downloadgsoc2013-empathy-8b10e78f1885104417d39041c506a3a5bfe985eb.tar
gsoc2013-empathy-8b10e78f1885104417d39041c506a3a5bfe985eb.tar.gz
gsoc2013-empathy-8b10e78f1885104417d39041c506a3a5bfe985eb.tar.bz2
gsoc2013-empathy-8b10e78f1885104417d39041c506a3a5bfe985eb.tar.lz
gsoc2013-empathy-8b10e78f1885104417d39041c506a3a5bfe985eb.tar.xz
gsoc2013-empathy-8b10e78f1885104417d39041c506a3a5bfe985eb.tar.zst
gsoc2013-empathy-8b10e78f1885104417d39041c506a3a5bfe985eb.zip
call-window-fullscreen: NULLify the video widget when it's destroyed
Diffstat (limited to 'src/empathy-call-window-fullscreen.c')
-rw-r--r--src/empathy-call-window-fullscreen.c12
1 files changed, 12 insertions, 0 deletions
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);
}