Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
23ba100d
Commit
23ba100d
authored
Jun 27, 2016
by
Erwan Croze
👋🏻
Browse files
Stay on last active view on single call end instead of going to call logs view
parent
9694b9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
gtk/incall_view.c
gtk/incall_view.c
+16
-9
No files found.
gtk/incall_view.c
View file @
23ba100d
...
@@ -509,7 +509,7 @@ void linphone_gtk_remove_in_call_view(LinphoneCall *call){
...
@@ -509,7 +509,7 @@ void linphone_gtk_remove_in_call_view(LinphoneCall *call){
GtkWidget
*
w
=
(
GtkWidget
*
)
linphone_call_get_user_pointer
(
call
);
GtkWidget
*
w
=
(
GtkWidget
*
)
linphone_call_get_user_pointer
(
call
);
GtkWidget
*
main_window
=
linphone_gtk_get_main_window
();
GtkWidget
*
main_window
=
linphone_gtk_get_main_window
();
GtkWidget
*
nb
=
linphone_gtk_get_widget
(
main_window
,
"viewswitch"
);
GtkWidget
*
nb
=
linphone_gtk_get_widget
(
main_window
,
"viewswitch"
);
int
idx
;
int
idx
,
id_current_page
;
g_return_if_fail
(
w
!=
NULL
);
g_return_if_fail
(
w
!=
NULL
);
idx
=
gtk_notebook_page_num
(
GTK_NOTEBOOK
(
nb
),
w
);
idx
=
gtk_notebook_page_num
(
GTK_NOTEBOOK
(
nb
),
w
);
if
(
linphone_gtk_call_is_in_conference_view
(
call
)){
if
(
linphone_gtk_call_is_in_conference_view
(
call
)){
...
@@ -518,15 +518,21 @@ void linphone_gtk_remove_in_call_view(LinphoneCall *call){
...
@@ -518,15 +518,21 @@ void linphone_gtk_remove_in_call_view(LinphoneCall *call){
linphone_call_set_user_pointer
(
call
,
NULL
);
linphone_call_set_user_pointer
(
call
,
NULL
);
linphone_call_unref
(
call
);
linphone_call_unref
(
call
);
call
=
linphone_core_get_current_call
(
linphone_gtk_get_core
());
call
=
linphone_core_get_current_call
(
linphone_gtk_get_core
());
if
(
call
==
NULL
){
id_current_page
=
gtk_notebook_get_current_page
(
GTK_NOTEBOOK
(
nb
));
if
(
linphone_core_is_in_conference
(
linphone_gtk_get_core
())){
if
(
id_current_page
==
idx
)
{
/*show the conference*/
if
(
call
==
NULL
){
if
(
linphone_core_is_in_conference
(
linphone_gtk_get_core
())){
/*show the conference*/
gtk_notebook_set_current_page
(
GTK_NOTEBOOK
(
nb
),
gtk_notebook_page_num
(
GTK_NOTEBOOK
(
nb
),
g_object_get_data
(
G_OBJECT
(
main_window
),
"conf_frame"
)));
}
else
{
gtk_notebook_set_current_page
(
GTK_NOTEBOOK
(
nb
),
0
);
}
}
else
{
/*show the active call*/
gtk_notebook_set_current_page
(
GTK_NOTEBOOK
(
nb
),
gtk_notebook_page_num
(
GTK_NOTEBOOK
(
nb
),
gtk_notebook_set_current_page
(
GTK_NOTEBOOK
(
nb
),
gtk_notebook_page_num
(
GTK_NOTEBOOK
(
nb
),
g_object_get_data
(
G_OBJECT
(
main_window
),
"conf_frame"
)));
linphone_call_get_user_pointer
(
call
)));
}
else
gtk_notebook_prev_page
(
GTK_NOTEBOOK
(
nb
));
}
}
else
{
/*show the active call*/
gtk_notebook_set_current_page
(
GTK_NOTEBOOK
(
nb
),
gtk_notebook_page_num
(
GTK_NOTEBOOK
(
nb
),
linphone_call_get_user_pointer
(
call
)));
}
}
gtk_notebook_remove_page
(
GTK_NOTEBOOK
(
nb
),
idx
);
gtk_notebook_remove_page
(
GTK_NOTEBOOK
(
nb
),
idx
);
gtk_widget_destroy
(
w
);
gtk_widget_destroy
(
w
);
...
@@ -865,6 +871,7 @@ void linphone_gtk_in_call_view_terminate(LinphoneCall *call, const char *error_m
...
@@ -865,6 +871,7 @@ void linphone_gtk_in_call_view_terminate(LinphoneCall *call, const char *error_m
gtk_label_set_markup
(
GTK_LABEL
(
status
),
msg
);
gtk_label_set_markup
(
GTK_LABEL
(
status
),
msg
);
g_free
(
msg
);
g_free
(
msg
);
}
}
linphone_gtk_in_call_set_animation_image
(
callview
,
linphone_gtk_get_ui_config
(
"stop_call_icon_name"
,
"linphone-stop-call"
));
linphone_gtk_in_call_set_animation_image
(
callview
,
linphone_gtk_get_ui_config
(
"stop_call_icon_name"
,
"linphone-stop-call"
));
linphone_gtk_in_call_view_hide_encryption
(
call
);
linphone_gtk_in_call_view_hide_encryption
(
call
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment