[ekiga] Hiding the popup and/or notification is also required when the call is established.
- From: Damien Sandras <dsandras src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga] Hiding the popup and/or notification is also required when the call is established.
- Date: Sun, 12 Jul 2009 16:38:24 +0000 (UTC)
commit 5275a52f2ee2aef3b741d35c66f4420403d9a7a7
Author: Damien Sandras <dsandras seconix com>
Date: Sun Jul 12 18:07:08 2009 +0200
Hiding the popup and/or notification is also required when the call is established.
src/gui/main.cpp | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index aeb8de3..29539a1 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -712,7 +712,7 @@ static void on_cleared_incoming_call_cb (std::string /*reason*/,
}
-static void on_missed_incoming_call_cb (gpointer self)
+static void on_incoming_call_gone_cb (gpointer self)
{
#ifdef HAVE_NOTIFY
notify_notification_close (NOTIFY_NOTIFICATION (self), NULL);
@@ -2729,9 +2729,11 @@ ekiga_main_window_incoming_call_dialog_show (EkigaMainWindow *mw,
g_signal_connect (G_OBJECT (incoming_call_popup), "response",
G_CALLBACK (incoming_call_response_cb), mw);
+ call->established.connect (sigc::bind (sigc::ptr_fun (on_incoming_call_gone_cb),
+ (gpointer) incoming_call_popup));
call->cleared.connect (sigc::bind (sigc::ptr_fun (on_cleared_incoming_call_cb),
(gpointer) incoming_call_popup));
- call->missed.connect (sigc::bind (sigc::ptr_fun (on_missed_incoming_call_cb),
+ call->missed.connect (sigc::bind (sigc::ptr_fun (on_incoming_call_gone_cb),
(gpointer) incoming_call_popup));
}
@@ -2813,9 +2815,11 @@ ekiga_main_window_incoming_call_notify (EkigaMainWindow *mw,
ekiga_main_window_incoming_call_dialog_show (mw, call);
}
else {
+ call->established.connect (sigc::bind (sigc::ptr_fun (on_incoming_call_gone_cb),
+ (gpointer) notify));
call->cleared.connect (sigc::bind (sigc::ptr_fun (on_cleared_incoming_call_cb),
(gpointer) notify));
- call->missed.connect (sigc::bind (sigc::ptr_fun (on_missed_incoming_call_cb),
+ call->missed.connect (sigc::bind (sigc::ptr_fun (on_incoming_call_gone_cb),
(gpointer) notify));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]