From 936bc398af3fb15e3068cf72182c357ade2a9cb9 Mon Sep 17 00:00:00 2001 From: alexandresavard <alexandresavard@alexandresavard-desktop.(none)> Date: Tue, 3 Feb 2009 15:52:20 -0500 Subject: [PATCH] Fix call_icon GTK client --- sflphone-gtk/src/actions.c | 10 ++++++++++ sflphone-gtk/src/dbus.c | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/sflphone-gtk/src/actions.c b/sflphone-gtk/src/actions.c index dcd715f04d..4f5e911a52 100644 --- a/sflphone-gtk/src/actions.c +++ b/sflphone-gtk/src/actions.c @@ -387,6 +387,16 @@ sflphone_current( call_t * c ) update_menus(); } +void +sflphone_record( call_t * c ) +{ + if( c->state != CALL_STATE_HOLD ) + (void) time(&c->_start); + c->state = CALL_STATE_RECORD; + update_call_tree(current_calls,c); + update_menus(); +} + void sflphone_set_transfert() { diff --git a/sflphone-gtk/src/dbus.c b/sflphone-gtk/src/dbus.c index c1227aadb2..c1d5d616a2 100644 --- a/sflphone-gtk/src/dbus.c +++ b/sflphone-gtk/src/dbus.c @@ -115,10 +115,14 @@ call_state_cb (DBusGProxy *proxy UNUSED, sflphone_hung_up (c); update_call_tree( history, c ); } - else if ( strcmp(state, "UNHOLD") == 0 ) + else if ( strcmp(state, "UNHOLD_CURRENT") == 0 ) { sflphone_current (c); } + else if ( strcmp(state, "UNHOLD_RECORD") == 0 ) + { + sflphone_record (c); + } else if ( strcmp(state, "HOLD") == 0 ) { sflphone_hold (c); -- GitLab