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

[#2176] Fix add call description

parent 17fc3335
Branches
Tags
No related merge requests found
...@@ -691,11 +691,22 @@ void calltree_add_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent) ...@@ -691,11 +691,22 @@ void calltree_add_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
gchar * description; gchar * description;
gchar * date=""; gchar * date="";
gchar *duration=""; gchar *duration="";
if(c->_state_code == 0) {
description = g_markup_printf_escaped("<b>%s</b> <i>%s</i>",
c->_peer_number,
c->_peer_name);
}
else {
description = g_markup_printf_escaped("<b>%s</b> <i>%s</i>\n<i>%s (%d)</i>", description = g_markup_printf_escaped("<b>%s</b> <i>%s</i>\n<i>%s (%d)</i>",
c->_peer_number, c->_peer_number,
c->_peer_name, c->_peer_name,
c->_state_code_description, c->_state_code_description,
c->_state_code); c->_state_code);
}
gtk_tree_store_prepend (tab->store, &iter, parent); gtk_tree_store_prepend (tab->store, &iter, parent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment