[empathy] call-window-fullscreen: NULLify the video widget when it's destroyed
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] call-window-fullscreen: NULLify the video widget when it's destroyed
- Date: Mon, 27 Sep 2010 13:29:16 +0000 (UTC)
commit 8b10e78f1885104417d39041c506a3a5bfe985eb
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Sep 16 13:37:34 2010 +0200
call-window-fullscreen: NULLify the video widget when it's destroyed
src/empathy-call-window-fullscreen.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window-fullscreen.c b/src/empathy-call-window-fullscreen.c
index e1c3d7a..75542e0 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]