mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 09:09:21 +00:00
revert changes made into linphone_gtk_update_call_buttons() as they are totally breaking the management of start_call and add_call buttons.
This commit is contained in:
parent
a3c33f5036
commit
fbc7b86f1e
1 changed files with 13 additions and 7 deletions
20
gtk/main.c
20
gtk/main.c
|
|
@ -870,27 +870,33 @@ static void linphone_gtk_update_call_buttons(LinphoneCall *call){
|
|||
GtkWidget *mw=linphone_gtk_get_main_window();
|
||||
const MSList *calls=linphone_core_get_calls(lc);
|
||||
GtkWidget *button;
|
||||
bool_t start_active=TRUE;
|
||||
//bool_t stop_active=FALSE;
|
||||
bool_t add_call=FALSE;
|
||||
int call_list_size=ms_list_size(calls);
|
||||
GtkWidget *conf_frame;
|
||||
|
||||
if (calls!=NULL){
|
||||
if (calls==NULL){
|
||||
start_active=TRUE;
|
||||
//stop_active=FALSE;
|
||||
}else{
|
||||
//stop_active=TRUE;
|
||||
start_active=TRUE;
|
||||
add_call=TRUE;
|
||||
}
|
||||
button=linphone_gtk_get_widget(mw,"start_call");
|
||||
gtk_widget_set_visible(button,!add_call);
|
||||
|
||||
button=linphone_gtk_get_widget(mw,"start_chat");
|
||||
gtk_widget_set_sensitive(button,start_active);
|
||||
gtk_widget_set_visible(button,!add_call);
|
||||
|
||||
button=linphone_gtk_get_widget(mw,"add_call");
|
||||
gtk_widget_set_visible(button,add_call);
|
||||
|
||||
if (linphone_core_sound_resources_locked(lc) || (call && linphone_call_get_state(call)==LinphoneCallIncomingReceived)) {
|
||||
gtk_widget_set_sensitive(button,FALSE);
|
||||
} else {
|
||||
gtk_widget_set_sensitive(button,TRUE);
|
||||
gtk_widget_set_sensitive(button,start_active);
|
||||
}
|
||||
|
||||
gtk_widget_set_visible(button,add_call);
|
||||
|
||||
//gtk_widget_set_sensitive(linphone_gtk_get_widget(mw,"terminate_call"),stop_active);
|
||||
conf_frame=(GtkWidget *)g_object_get_data(G_OBJECT(mw),"conf_frame");
|
||||
if(conf_frame==NULL){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue