Skip to content
Snippets Groups Projects
Commit 191e6ca0 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2382] Indent accountconfigdialog.c

parent 4d57656e
Branches
Tags
No related merge requests found
......@@ -660,6 +660,7 @@ GtkWidget * create_advanced_tab(account_t **a)
// Load from SIP/IAX/Unknown ?
if(currentAccount) {
resolve_once = g_hash_table_lookup(currentAccount->properties, ACCOUNT_RESOLVE_ONCE);
account_expire = g_hash_table_lookup(currentAccount->properties, ACCOUNT_REGISTRATION_EXPIRE);
use_tls = g_hash_table_lookup(currentAccount->properties, TLS_ENABLE);
......@@ -684,12 +685,14 @@ GtkWidget * create_advanced_tab(account_t **a)
gtk_spin_button_set_value(GTK_SPIN_BUTTON(expireSpinBox), g_ascii_strtod(account_expire, NULL));
gtk_table_attach_defaults(GTK_TABLE(table), expireSpinBox, 1, 2, 0, 1);
entryResolveNameOnlyOnce = gtk_check_button_new_with_mnemonic(_("_Comply with RFC 3263"));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(entryResolveNameOnlyOnce),
g_strcasecmp(resolve_once,"false") == 0 ? TRUE: FALSE);
gtk_table_attach_defaults( GTK_TABLE( table ), entryResolveNameOnlyOnce, 0, 2, 1, 2);
gtk_widget_set_sensitive( GTK_WIDGET( entryResolveNameOnlyOnce ) , TRUE );
gnome_main_section_new_with_table (_("Network"), &frame, &table, 2, 3);
gtk_box_pack_start(GTK_BOX(ret), frame, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER(table), 10);
......@@ -737,6 +740,7 @@ GtkWidget * create_advanced_tab(account_t **a)
gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(localAddressCombo), ipInterfaceCellRenderer, "text", 0, NULL);
gtk_combo_box_set_active_iter(GTK_COMBO_BOX(localAddressCombo), &current_local_address_iter);
/**
* Local port
*/
......@@ -746,6 +750,7 @@ GtkWidget * create_advanced_tab(account_t **a)
localPortSpinBox = gtk_spin_button_new_with_range(1, 65535, 1);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), localPortSpinBox);
gtk_spin_button_set_value(GTK_SPIN_BUTTON(localPortSpinBox), g_ascii_strtod(local_port, NULL));
gtk_table_attach_defaults(GTK_TABLE(table), localPortSpinBox, 1, 2, 1, 2);
label = gtk_label_new_with_mnemonic (_("Set published address and port:"));
......@@ -781,6 +786,7 @@ GtkWidget * create_advanced_tab(account_t **a)
gtk_spin_button_set_value(GTK_SPIN_BUTTON(publishedPortSpinBox), g_ascii_strtod(published_port, NULL));
gtk_table_attach_defaults(GTK_TABLE(table), publishedPortSpinBox, 1, 2, 7, 8);
stunServerLabel = gtk_label_new_with_mnemonic (_("STUN server URL"));
gtk_table_attach_defaults(GTK_TABLE(table), stunServerLabel, 0, 1, 8, 9);
gtk_misc_set_alignment(GTK_MISC(stunServerLabel), 0, 0.5);
......@@ -945,6 +951,7 @@ show_account_window (account_t * a)
g_strdup(ACCOUNT_REGISTRATION_EXPIRE),
g_strdup((gchar *)gtk_entry_get_text(GTK_ENTRY(expireSpinBox))));
if (strcmp(proto, "SIP") == 0) {
g_hash_table_replace(currentAccount->properties, g_strdup(ACCOUNT_SIP_STUN_ENABLED),
......@@ -979,6 +986,7 @@ show_account_window (account_t * a)
g_hash_table_replace(currentAccount->properties,
g_strdup(PUBLISHED_ADDRESS),
g_strdup((gchar *)gtk_entry_get_text(GTK_ENTRY(publishedAddressEntry))));
}
/* Set new credentials if any */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment