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
7da4268f
Commit
7da4268f
authored
16 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
History - pop head and push tail if full
parent
d57b955d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sflphone-gtk/src/actions.c
+2
-2
2 additions, 2 deletions
sflphone-gtk/src/actions.c
sflphone-gtk/src/calllist.c
+11
-0
11 additions, 0 deletions
sflphone-gtk/src/calllist.c
sflphone-gtk/src/calltree.c
+2
-1
2 additions, 1 deletion
sflphone-gtk/src/calltree.c
with
15 additions
and
3 deletions
sflphone-gtk/src/actions.c
+
2
−
2
View file @
7da4268f
...
...
@@ -377,7 +377,7 @@ sflphone_incoming_call (call_t * c)
call_list_add
(
current_calls
,
c
);
call_list_add
(
history
,
c
);
update_call_tree_add
(
current_calls
,
c
);
update_call_tree_add
(
history
,
c
);
//
update_call_tree_add( history , c );
update_menus
();
}
...
...
@@ -649,7 +649,7 @@ sflphone_place_call ( call_t * c )
// Update history
c
->
history_state
=
OUTGOING
;
call_list_add
(
history
,
c
);
update_call_tree_add
(
history
,
c
);
//
update_call_tree_add(history, c);
}
}
...
...
This diff is collapsed.
Click to expand it.
sflphone-gtk/src/calllist.c
+
11
−
0
View file @
7da4268f
...
...
@@ -81,9 +81,20 @@ call_list_add (calltab_t* tab, call_t * c)
{
if
(
tab
==
history
)
{
g_print
(
"ADD THE FUCKING CALL call list size = %i - max calls = %i
\n
"
,
call_list_get_size
(
tab
)
,
dbus_get_max_calls
());
// First case: can still add calls to the list
if
(
call_list_get_size
(
tab
)
<
dbus_get_max_calls
()
)
{
g_print
(
"ADD THE FUCKING CALL
\n
"
);
g_queue_push_tail
(
tab
->
callQueue
,
(
gpointer
*
)
c
);
update_call_tree_add
(
history
,
c
);
}
// List full -> Remove the last call from history and preprend the new call to the list
else
{
update_call_tree_remove
(
history
,
(
call_t
*
)
g_queue_pop_head
(
tab
->
callQueue
)
);
g_queue_push_tail
(
tab
->
callQueue
,
(
gpointer
*
)
c
);
update_call_tree_add
(
history
,
c
);
}
}
else
...
...
This diff is collapsed.
Click to expand it.
sflphone-gtk/src/calltree.c
+
2
−
1
View file @
7da4268f
...
...
@@ -619,7 +619,8 @@ update_call_tree (calltab_t* tab, call_t * c)
void
update_call_tree_add
(
calltab_t
*
tab
,
call_t
*
c
)
{
if
(
tab
==
history
&&
(
call_list_get_size
(
tab
)
>=
dbus_get_max_calls
()
)
)
g_print
(
"ADD THE FUCKING CALL call list size = %i - max calls = %i
\n
"
,
call_list_get_size
(
tab
)
,
dbus_get_max_calls
());
if
(
tab
==
history
&&
(
call_list_get_size
(
tab
)
>
dbus_get_max_calls
()
)
)
return
;
GdkPixbuf
*
pixbuf
;
...
...
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