[ekiga/ds-gtk-application] CallWindow: Destroy CallWindow one time only.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] CallWindow: Destroy CallWindow one time only.
- Date: Sat, 20 Dec 2014 12:47:58 +0000 (UTC)
commit 857fc06ef0faf68da417fcd79e18b4c463759fc0
Author: Damien Sandras <dsandras seconix com>
Date: Sat Dec 20 13:44:56 2014 +0100
CallWindow: Destroy CallWindow one time only.
This is enough ;)
lib/engine/gui/gtk-frontend/call-window.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/call-window.cpp b/lib/engine/gui/gtk-frontend/call-window.cpp
index 8c99f41..9e1d46a 100644
--- a/lib/engine/gui/gtk-frontend/call-window.cpp
+++ b/lib/engine/gui/gtk-frontend/call-window.cpp
@@ -122,6 +122,7 @@ struct _EkigaCallWindowPrivate
GtkWidget *video_widget;
bool fullscreen;
+ bool dead;
GtkWidget *call_panel_toolbar;
GtkWidget *settings_button;
@@ -987,6 +988,10 @@ ekiga_call_window_delete_event_cb (GtkWidget *widget,
self = EKIGA_CALL_WINDOW (widget);
g_return_val_if_fail (EKIGA_IS_CALL_WINDOW (self), false);
+ if (self->priv->dead)
+ return true;
+
+ self->priv->dead = true;
/* Hang up or disable preview */
if (self->priv->fullscreen) {
@@ -1659,6 +1664,7 @@ ekiga_call_window_init (EkigaCallWindow *self)
self->priv->timeout_id = -1;
self->priv->calling_state = Standby;
self->priv->fullscreen = false;
+ self->priv->dead = false;
self->priv->video_display_settings =
boost::shared_ptr<Ekiga::Settings> (new Ekiga::Settings (VIDEO_DISPLAY_SCHEMA));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]