Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
0c0ecfd1
Commit
0c0ecfd1
authored
15 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#2474] Use calltree_display_call_info for Normal calls and Transfers
parent
854fd19b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-client-gnome/src/contacts/calltree.c
+67
-20
67 additions, 20 deletions
sflphone-client-gnome/src/contacts/calltree.c
sflphone-client-gnome/src/contacts/calltree.h
+1
-1
1 addition, 1 deletion
sflphone-client-gnome/src/contacts/calltree.h
with
68 additions
and
21 deletions
sflphone-client-gnome/src/contacts/calltree.c
+
67
−
20
View file @
0c0ecfd1
...
@@ -339,11 +339,19 @@ button_pressed(GtkWidget* widget, GdkEventButton *event, gpointer user_data UNUS
...
@@ -339,11 +339,19 @@ button_pressed(GtkWidget* widget, GdkEventButton *event, gpointer user_data UNUS
gchar
*
gchar
*
calltree_display_call_info
(
callable_obj_t
*
c
,
CallDisplayType
display_type
)
calltree_display_call_info
(
callable_obj_t
*
c
,
CallDisplayType
display_type
,
gchar
**
display_info
)
{
{
gchar
*
description
;
gchar
*
description
;
gchar
*
tmp_info
;
DEBUG
(
"----------------- calltree_display_call_info -----------------
\n
"
);
switch
(
display_type
)
{
case
DISPLAY_TYPE_CALL
:
DEBUG
(
"display a normal call"
);
if
(
c
->
_state_code
==
0
)
{
if
(
c
->
_state_code
==
0
)
{
if
(
g_strcmp0
(
""
,
c
->
_peer_name
)
==
0
)
{
if
(
g_strcmp0
(
""
,
c
->
_peer_name
)
==
0
)
{
...
@@ -375,9 +383,39 @@ calltree_display_call_info(callable_obj_t * c, CallDisplayType display_type)
...
@@ -375,9 +383,39 @@ calltree_display_call_info(callable_obj_t * c, CallDisplayType display_type)
}
}
}
}
break
;
return
description
;
case
DISPLAY_TYPE_CALL_TRANSFER
:
DEBUG
(
"display a call transfer"
)
if
(
g_strcmp0
(
""
,
c
->
_peer_name
)
==
0
){
description
=
g_markup_printf_escaped
(
"<b>%s</b> <i>%s</i>
\n
<i>Transfert to:%s</i> "
,
c
->
_peer_number
,
c
->
_peer_name
,
c
->
_trsft_to
);
}
else
{
description
=
g_markup_printf_escaped
(
"<b>%s</b> <i>%s</i>
\n
<i>Transfert to:%s</i> "
,
c
->
_peer_name
,
c
->
_peer_number
,
c
->
_trsft_to
);
}
DEBUG
(
"Transfer string: %s"
,
description
);
break
;
default
:
DEBUG
(
"Not an allowable type of display"
);
break
;
}
// return description;
tmp_info
=
g_strdup
(
description
);
*
display_info
=
tmp_info
;
}
}
...
@@ -629,6 +667,10 @@ calltree_update_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
...
@@ -629,6 +667,10 @@ calltree_update_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
if
(
c
->
_state
==
CALL_STATE_TRANSFERT
)
if
(
c
->
_state
==
CALL_STATE_TRANSFERT
)
{
{
calltree_display_call_info
(
c
,
DISPLAY_TYPE_CALL_TRANSFER
,
&
description
);
DEBUG
(
"second try: %s"
,
description
);
/*
if(g_strcmp0("",c->_peer_name) == 0){
if(g_strcmp0("",c->_peer_name) == 0){
description = g_markup_printf_escaped("<b>%s</b> <i>%s</i>\n<i>Transfert to:%s</i> ",
description = g_markup_printf_escaped("<b>%s</b> <i>%s</i>\n<i>Transfert to:%s</i> ",
c->_peer_number,
c->_peer_number,
...
@@ -641,6 +683,7 @@ calltree_update_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
...
@@ -641,6 +683,7 @@ calltree_update_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
c->_peer_number,
c->_peer_number,
c->_trsft_to);
c->_trsft_to);
}
}
*/
}
}
else
else
{
{
...
@@ -800,6 +843,7 @@ void calltree_add_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
...
@@ -800,6 +843,7 @@ void calltree_add_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
gchar
*
date
=
""
;
gchar
*
date
=
""
;
gchar
*
duration
=
""
;
gchar
*
duration
=
""
;
/*
if(c->_state_code == 0) {
if(c->_state_code == 0) {
if(g_strcmp0("", c->_peer_name) == 0) {
if(g_strcmp0("", c->_peer_name) == 0) {
...
@@ -830,6 +874,9 @@ void calltree_add_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
...
@@ -830,6 +874,9 @@ void calltree_add_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
c->_state_code);
c->_state_code);
}
}
}
}
*/
calltree_display_call_info
(
c
,
DISPLAY_TYPE_CALL
,
&
description
);
gtk_tree_store_prepend
(
tab
->
store
,
&
iter
,
parent
);
gtk_tree_store_prepend
(
tab
->
store
,
&
iter
,
parent
);
...
...
This diff is collapsed.
Click to expand it.
sflphone-client-gnome/src/contacts/calltree.h
+
1
−
1
View file @
0c0ecfd1
...
@@ -44,8 +44,8 @@ enum {
...
@@ -44,8 +44,8 @@ enum {
* Tags used to identify display type in calltree
* Tags used to identify display type in calltree
*/
*/
typedef
enum
{
typedef
enum
{
DISPLAY_TYPE_CALL_TRANSFER
,
DISPLAY_TYPE_CALL
,
DISPLAY_TYPE_CALL
,
DISPLAY_TYPE_CALL_TRANSFER
,
DISPLAY_TYPE_SAS
,
DISPLAY_TYPE_SAS
,
DISPLAY_TYPE_STATE_CODE
DISPLAY_TYPE_STATE_CODE
}
CallDisplayType
;
}
CallDisplayType
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment