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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
b5637b1a
Commit
b5637b1a
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #6853: hangup as soon as all digits have been deleted
parent
c65106e3
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gnome/src/actions.c
+18
-9
18 additions, 9 deletions
gnome/src/actions.c
gnome/src/callable_obj.c
+4
-4
4 additions, 4 deletions
gnome/src/callable_obj.c
gnome/src/contacts/calltree.c
+10
-9
10 additions, 9 deletions
gnome/src/contacts/calltree.c
with
32 additions
and
22 deletions
gnome/src/actions.c
+
18
−
9
View file @
b5637b1a
...
...
@@ -628,6 +628,17 @@ sflphone_incoming_call (callable_obj_t * c)
}
}
/* Truncates last char from dynamically allocated string */
static
void
truncate_last_char
(
gchar
**
str
)
{
if
(
strlen
(
*
str
)
>
0
)
{
gchar
*
tmp
=
*
str
;
tmp
=
g_strndup
(
*
str
,
strlen
(
*
str
)
-
1
);
g_free
(
*
str
);
*
str
=
tmp
;
}
}
void
process_dialing
(
callable_obj_t
*
c
,
guint
keyval
,
gchar
*
key
)
{
...
...
@@ -645,15 +656,13 @@ process_dialing (callable_obj_t *c, guint keyval, gchar *key)
break
;
case
GDK_BackSpace
:
if
(
c
->
_state
==
CALL_STATE_TRANSFERT
)
{
if
(
*
c
->
_trsft_to
)
c
->
_trsft_to
[
strlen
(
c
->
_trsft_to
)
-
1
]
=
'\0'
;
truncate_last_char
(
&
c
->
_trsft_to
);
calltree_update_call
(
current_calls
,
c
,
NULL
);
}
else
{
if
(
*
c
->
_peer_number
)
{
c
->
_peer_number
[
strlen
(
c
->
_peer_number
)
-
1
]
=
'\0'
;
truncate_last_char
(
&
c
->
_peer_number
);
calltree_update_call
(
current_calls
,
c
,
NULL
);
}
else
/* If number is now empty, hang up immediately */
if
(
strlen
(
c
->
_peer_number
)
==
0
)
dbus_hang_up
(
c
);
}
...
...
This diff is collapsed.
Click to expand it.
gnome/src/callable_obj.c
+
4
−
4
View file @
b5637b1a
This diff is collapsed.
Click to expand it.
gnome/src/contacts/calltree.c
+
10
−
9
View file @
b5637b1a
...
...
@@ -692,9 +692,9 @@ calltree_update_call (calltab_t* tab, callable_obj_t * c, GtkTreeIter *parent)
gchar
*
description
=
NULL
;
gchar
*
audio_codec
=
call_get_audio_codec
(
c
);
if
(
c
->
_state
==
CALL_STATE_TRANSFERT
)
{
if
(
c
->
_state
==
CALL_STATE_TRANSFERT
)
description
=
calltree_display_call_info
(
c
,
DISPLAY_TYPE_CALL_TRANSFER
,
""
);
}
else
{
else
{
if
(
c
->
_sas
&&
display_sas
&&
c
->
_srtp_state
==
SRTP_STATE_ZRTP_SAS_UNCONFIRMED
&&
!
c
->
_zrtp_confirmed
)
description
=
calltree_display_call_info
(
c
,
DISPLAY_TYPE_SAS
,
""
);
else
...
...
@@ -1712,17 +1712,18 @@ void drag_data_received_cb (GtkWidget *widget, GdkDragContext *context UNUSED, g
static
void
menuitem_response
(
gchar
*
string
)
{
if
(
g_strcmp0
(
string
,
SFL_CREATE_CONFERENCE
)
==
0
)
{
sflphone_join_participant
(
calltree_selected_call
->
_callID
,
calltree_dragged_call
->
_callID
);
}
if
(
g_strcmp0
(
string
,
SFL_CREATE_CONFERENCE
)
==
0
)
sflphone_join_participant
(
calltree_selected_call
->
_callID
,
calltree_dragged_call
->
_callID
);
else
if
(
g_strcmp0
(
string
,
SFL_TRANSFER_CALL
)
==
0
)
{
DEBUG
(
"Calltree: Transfering call %s, to %s"
,
calltree_selected_call
->
_peer_number
,
calltree_dragged_call
->
_peer_number
);
DEBUG
(
"Calltree: Transfering call %s, to %s"
,
calltree_selected_call
->
_peer_number
,
calltree_dragged_call
->
_peer_number
);
dbus_attended_transfer
(
calltree_selected_call
,
calltree_dragged_call
);
calltree_remove_call
(
current_calls
,
calltree_selected_call
,
NULL
);
}
else
{
else
DEBUG
(
"CallTree: Error unknown option selected in menu %s"
,
string
);
}
// Make sure the create conference opetion will appear next time the menu pops
// The create conference option will hide if tow call from the same conference are draged on each other
...
...
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