mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 13:08:08 +00:00
display in use adsl/fiber choice at startup
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@669 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
01759a847c
commit
f326ffa70d
2 changed files with 10 additions and 6 deletions
|
|
@ -61,6 +61,14 @@ void linphone_gtk_show_login_frame(LinphoneProxyConfig *cfg){
|
|||
LinphoneCore *lc=linphone_gtk_get_core();
|
||||
int nettype;
|
||||
|
||||
|
||||
if (linphone_core_get_download_bandwidth(lc)==0 &&
|
||||
linphone_core_get_upload_bandwidth(lc)==0)
|
||||
nettype=NetworkKindOpticalFiber;
|
||||
else nettype=NetworkKindAdsl;
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(linphone_gtk_get_widget(mw,"login_internet_kind")),nettype);
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(linphone_gtk_get_widget(mw,"internet_kind")),nettype);
|
||||
|
||||
if (linphone_gtk_get_ui_config_int("automatic_login",0) ){
|
||||
g_timeout_add(250,(GSourceFunc)do_login_noprompt,cfg);
|
||||
return;
|
||||
|
|
@ -86,11 +94,7 @@ void linphone_gtk_show_login_frame(LinphoneProxyConfig *cfg){
|
|||
from->url->username);
|
||||
gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(mw,"login_password")),
|
||||
ai!=NULL ? ai->passwd : "");
|
||||
if (linphone_core_get_download_bandwidth(lc)==0 &&
|
||||
linphone_core_get_upload_bandwidth(lc)==0)
|
||||
nettype=NetworkKindOpticalFiber;
|
||||
else nettype=NetworkKindAdsl;
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(linphone_gtk_get_widget(mw,"login_internet_kind")),nettype);
|
||||
|
||||
osip_from_free(from);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -536,7 +536,7 @@ Online users</property>
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkComboBox" id="login_internet_kind1">
|
||||
<widget class="GtkComboBox" id="internet_kind">
|
||||
<property name="visible">True</property>
|
||||
<property name="active">0</property>
|
||||
<property name="items" translatable="yes">ADSL
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue