[ekiga] Main window: Intercept delete event.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Main window: Intercept delete event.
- Date: Sun, 29 Jan 2012 17:55:43 +0000 (UTC)
commit 3c09190349472794857a6c52b2ad6d02a1c67baa
Author: Damien Sandras <dsandras beip be>
Date: Sun Jan 29 18:54:33 2012 +0100
Main window: Intercept delete event.
For some reason, it does not work. We should hangup.
src/gui/call_window.cpp | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/call_window.cpp b/src/gui/call_window.cpp
index f5b5bd4..3d43275 100644
--- a/src/gui/call_window.cpp
+++ b/src/gui/call_window.cpp
@@ -2607,12 +2607,18 @@ ekiga_call_window_focus_in_event (GtkWidget *widget,
}
static gboolean
-ekiga_call_window_delete_event (GtkWidget *widget,
+ekiga_call_window_delete_event (GtkWidget *widget,
G_GNUC_UNUSED GdkEventAny *event)
{
- gtk_widget_hide (widget);
+ EkigaCallWindow *cw = NULL;
+ g_return_val_if_fail (EKIGA_IS_CALL_WINDOW (cw), FALSE);
+
+ cw = EKIGA_CALL_WINDOW (widget);
+
+ if (cw->priv->current_call)
+ cw->priv->current_call->hangup ();
- return TRUE;
+ return FALSE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]