Skip to content
Snippets Groups Projects
Commit 347749b8 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#6183: Calling calltree_add_call explicitely for history

parent bc090859
Branches
Tags
No related merge requests found
......@@ -626,6 +626,7 @@ sflphone_incoming_call (callable_obj_t * c)
calllist_add_call (current_calls, c);
calllist_add_call (history, c);
calltree_add_call (current_calls, c, NULL);
calltree_add_call (history, c, NULL);
update_actions();
calltree_display (current_calls);
......@@ -950,7 +951,10 @@ static int _place_registered_call (callable_obj_t * c)
}
c->_history_state = OUTGOING;
calllist_add_call (history, c);
calltree_add_call (history, c, NULL);
return 0;
}
......@@ -1314,9 +1318,11 @@ void sflphone_fill_history (void)
// do something with key and value
create_history_entry_from_serialized_form ( (gchar*) key, (gchar*) value, &history_entry);
DEBUG ("HISTORY ENTRY: %i\n", history_entry->_time_start);
// Add it and update the GUI
DEBUG ("SFLphone: History timestart%d\n", history_entry->_time_start);
// Add it and update the GUI
calllist_add_call (history, history_entry);
calltree_add_call (history, history_entry, NULL);
// remove entry from map
g_hash_table_remove (entries, key_to_min);
......
......@@ -49,7 +49,6 @@ gint is_callID_callstruct(gconstpointer a, gconstpointer b)
call = c->elem.call;
DEBUG("Compare %s to %s", call->_callID, (const gchar *)b);
if(g_strcasecmp(call->_callID, (const gchar *) b) == 0) {
return 0;
}
......@@ -147,16 +146,12 @@ calllist_add_call (calltab_t* tab, callable_obj_t * c)
{
QueueElement *element;
DEBUG(")))))))))))))))))))))))))))))))))))))))))))) Calllist: Add Call %s", c->_callID);
DEBUG("Calllist: Add Call %s", c->_callID);
// if (tab == history) {
// calllist_add_history_call (c);
// } else {
element = (QueueElement *)malloc(sizeof(QueueElement));
element->type = HIST_CALL;
element->elem.call = c;
g_queue_push_tail (tab->callQueue, (gpointer *) element);
// }
element = (QueueElement *)malloc(sizeof(QueueElement));
element->type = HIST_CALL;
element->elem.call = c;
g_queue_push_tail (tab->callQueue, (gpointer *) element);
}
// TODO : sflphoneGTK : try to do this more generic
......
......@@ -76,6 +76,8 @@ new_call_created_cb (DBusGProxy *proxy UNUSED, const gchar *accountID,
calllist_add_call(current_calls, c);
calllist_add_call(history, c);
calltree_add_call(current_calls, c, NULL);
calltree_add_call(history, c, NULL);
update_actions();
calltree_display(current_calls);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment