[empathy] call-window: call empathy_call_handler_stop_call when closing a call



commit 09c8c6dee9aaf2ff5e19bc78c3c59d5013098990
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Feb 22 18:00:59 2010 +0000

    call-window: call empathy_call_handler_stop_call when closing a call
    
    This will allow us to properly terminate the call.

 src/empathy-call-window.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 21a2e68..99e1cc8 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1331,7 +1331,10 @@ empathy_call_window_dispose (GObject *object)
     }
 
   if (priv->handler != NULL)
-    g_object_unref (priv->handler);
+    {
+      empathy_call_handler_stop_call (priv->handler);
+      g_object_unref (priv->handler);
+    }
   priv->handler = NULL;
 
   if (priv->pipeline != NULL)
@@ -2667,6 +2670,10 @@ static void
 empathy_call_window_hangup_cb (gpointer object,
                                EmpathyCallWindow *window)
 {
+  EmpathyCallWindowPriv *priv = GET_PRIV (window);
+
+  empathy_call_handler_stop_call (priv->handler);
+
   if (empathy_call_window_disconnected (window))
     gtk_widget_destroy (GTK_WIDGET (window));
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]