[ekiga] CallWindow: Fixed GTK warning.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] CallWindow: Fixed GTK warning.
- Date: Thu, 12 Nov 2015 18:37:18 +0000 (UTC)
commit d858820909709cbea8c106e9ac2f477414e454af
Author: Damien Sandras <dsandras seconix com>
Date: Sun Oct 11 16:43:42 2015 +0200
CallWindow: Fixed GTK warning.
Only try removing source timeouts when there are any.
lib/engine/gui/gtk-frontend/call-window.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/call-window.cpp b/lib/engine/gui/gtk-frontend/call-window.cpp
index 16d4cf4..bf13be4 100644
--- a/lib/engine/gui/gtk-frontend/call-window.cpp
+++ b/lib/engine/gui/gtk-frontend/call-window.cpp
@@ -763,8 +763,12 @@ on_cleared_call_cb (boost::shared_ptr<Ekiga::Call> call,
if (self->priv->current_call) {
self->priv->current_call = boost::shared_ptr<Ekiga::Call>();
- g_source_remove (self->priv->destroy_timeout_id);
- g_source_remove (self->priv->timeout_id);
+
+ if (self->priv->destroy_timeout_id > 0)
+ g_source_remove (self->priv->destroy_timeout_id);
+ if (self->priv->timeout_id > 0)
+ g_source_remove (self->priv->timeout_id);
+
self->priv->destroy_timeout_id = 0;
self->priv->timeout_id = 0;
self->priv->bad_connection = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]