diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-04-29 20:05:50 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-10-21 14:04:50 +0800 |
commit | cac6aa1626dcfe6c3503ee78c863f218c6a26551 (patch) | |
tree | e21a676035c87341abaacf40607f9db0bb5a161b /src/empathy-call-handler.c | |
parent | 1cc11526cb28298f79ba6b194abfe24b14b229cd (diff) | |
download | gsoc2013-empathy-cac6aa1626dcfe6c3503ee78c863f218c6a26551.tar gsoc2013-empathy-cac6aa1626dcfe6c3503ee78c863f218c6a26551.tar.gz gsoc2013-empathy-cac6aa1626dcfe6c3503ee78c863f218c6a26551.tar.bz2 gsoc2013-empathy-cac6aa1626dcfe6c3503ee78c863f218c6a26551.tar.lz gsoc2013-empathy-cac6aa1626dcfe6c3503ee78c863f218c6a26551.tar.xz gsoc2013-empathy-cac6aa1626dcfe6c3503ee78c863f218c6a26551.tar.zst gsoc2013-empathy-cac6aa1626dcfe6c3503ee78c863f218c6a26551.zip |
Show an infobar if there's not enough credit
With a button to buy some if desired.
Diffstat (limited to 'src/empathy-call-handler.c')
-rw-r--r-- | src/empathy-call-handler.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/empathy-call-handler.c b/src/empathy-call-handler.c index 9fe89337d..0f197bf5d 100644 --- a/src/empathy-call-handler.c +++ b/src/empathy-call-handler.c @@ -190,13 +190,18 @@ static void on_call_state_changed_cb (TpyCallChannel *call, TpyCallState state, TpyCallFlags flags, - const GValueArray *call_state_reason, + const GValueArray *call_state_reason, GHashTable *call_state_details, EmpathyCallHandler *handler) { EmpathyCallHandlerPriv *priv = handler->priv; + gchar *dbus_reason; + guint actor, reason; - g_signal_emit (handler, signals[STATE_CHANGED], 0, state); + tp_value_array_unpack ((GValueArray *) call_state_reason, 3, + &actor, &reason, &dbus_reason); + + g_signal_emit (handler, signals[STATE_CHANGED], 0, state, dbus_reason); if (state == TPY_CALL_STATE_ENDED) { |