diff options
author | Jonathan Tellier <jonathan.tellier@gmail.com> | 2009-05-08 03:13:04 +0800 |
---|---|---|
committer | jtellier <jonathan.tellier@collabora.co.uk> | 2009-06-09 21:24:10 +0800 |
commit | 9d2cfd58eccb1e5fa985b14b0b744c3766f7988d (patch) | |
tree | 72caa58e96501ee8457164579c58d10b31d64197 /libempathy/empathy-call-handler.c | |
parent | 08fb04d03b17c44e401d89cfd0e957c41cdf3b56 (diff) | |
download | gsoc2013-empathy-9d2cfd58eccb1e5fa985b14b0b744c3766f7988d.tar gsoc2013-empathy-9d2cfd58eccb1e5fa985b14b0b744c3766f7988d.tar.gz gsoc2013-empathy-9d2cfd58eccb1e5fa985b14b0b744c3766f7988d.tar.bz2 gsoc2013-empathy-9d2cfd58eccb1e5fa985b14b0b744c3766f7988d.tar.lz gsoc2013-empathy-9d2cfd58eccb1e5fa985b14b0b744c3766f7988d.tar.xz gsoc2013-empathy-9d2cfd58eccb1e5fa985b14b0b744c3766f7988d.tar.zst gsoc2013-empathy-9d2cfd58eccb1e5fa985b14b0b744c3766f7988d.zip |
Added a "Redial" button to the call window.
Diffstat (limited to 'libempathy/empathy-call-handler.c')
-rw-r--r-- | libempathy/empathy-call-handler.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c index 8d70885b4..90df179bc 100644 --- a/libempathy/empathy-call-handler.c +++ b/libempathy/empathy-call-handler.c @@ -1,6 +1,6 @@ /* * empathy-call-handler.c - Source for EmpathyCallHandler - * Copyright (C) 2008 Collabora Ltd. + * Copyright (C) 2008-2009 Collabora Ltd. * @author Sjoerd Simons <sjoerd.simons@collabora.co.uk> * * This library is free software; you can redistribute it and/or @@ -577,3 +577,22 @@ empathy_call_handler_start_call (EmpathyCallHandler *handler) g_object_unref (dispatcher); } +/** + * empathy_call_handler_stop_call: + * @handler: an #EmpathyCallHandler + * + * Closes the #EmpathyCallHandler's call and frees its resources. + */ +void +empathy_call_handler_stop_call (EmpathyCallHandler *handler) +{ + EmpathyCallHandlerPriv *priv = GET_PRIV (handler); + + if (priv->call != NULL) + { + empathy_tp_call_close (priv->call); + g_object_unref (priv->call); + } + + priv->call = NULL; +}
\ No newline at end of file |